/** * Eloquent 'deleting' event method. * * @param \Arcanedev\LaravelAuth\Models\User|User $user * * @return bool */ public function deleting(User $user) { if ($user->isAdmin()) { return false; } if ($user->isForceDeleting()) { $user->roles()->detach(); } $this->event->fire('auth.users.deleting', compact('user')); return true; }