Mail: [email protected] Phone: +1(424)231-4091

Method Filter: getDeclaredDependencies

This filter, which applies to models using the NsDependable trait, is used to mutate the dependencies resources checked while deleting any entity. You'll replace "Class" with the relevant Crud for which you would like to extend the dependencies check.

In the above example, we're extending the user declared dependency to ensure a user is not deleted if he's still referenced on the book table.