isAdmin) { return true; } return false; } /** * Determine whether the user can update the model. */ public function update(User $user, News $news): bool { if ($user->isAdmin) { return true; } return false; } /** * Determine whether the user can delete the model. */ public function delete(User $user, News $news): bool { if ($user->isAdmin) { return true; } return false; } }