attachable); } public function delete(User $user, Attachment $attachment): bool { return $this->view($user, $attachment) && ($user->hasRole('admin') || $attachment->uploaded_by === $user->id); } }