When I delete a row using this syntax:
$user->delete();
Is there a way to attach a callback of sorts, so that it would e.g. do this auto
As of Laravel 5.2, the documentation states that these kinds of event handlers should be registered in the AppServiceProvider:
photos()->delete(); }); }
I even suppose to move them to separate classes instead of closures for better application structure.