isMod() || $user->isAdmin() || $mod->users->contains($user); } /** * Determine whether the user can delete the model. */ public function delete(User $user, Mod $mod): bool { // I'm guessing we want the mod author to also be able to do this? // what if there are multiple authors? // I'm leaving that out for now -waffle.lazy return $user->isAdmin(); } /** * Determine whether the user can restore the model. */ public function restore(User $user, Mod $mod): bool { return false; } /** * Determine whether the user can permanently delete the model. */ public function forceDelete(User $user, Mod $mod): bool { return false; } }