user()->can('destroy', Project::find(request('id'))); } public function _rules(): array { return ['id' => 'required|int|exists:projects,id']; } }