id === $model->getAttribute('user_id'); } /** * Determine whether the user can delete the model. */ public function delete(User $user, Model $model): bool { return $user->id === $model->getAttribute('user_id'); } /** * Determine whether the user can restore the model. */ public function restore(User $user, Model $model): bool { return false; } /** * Determine whether the user can permanently delete the model. */ public function forceDelete(User $user, Model $model): bool { return false; } }