can('pages.create') || $user->can('pages.update'); } /** * A file something still points at cannot be deleted from here: doing so * would leave a broken image on the public site, which is precisely what * the health check exists to complain about. */ public function delete(User $user, $model): bool { return parent::delete($user, $model) && ! $model->isReferenced(); } }