/** * When an item is soft deleted, soft delete it's descendants, too */ public static function boot() { parent::boot(); Item::deleting(function ($item) { foreach ($item->children as $child) { $child->delete(); } }); }