user()->can('destroy', ProjectGroup::class); } public function _rules(): array { return ['id' => 'required|int|exists:project_groups,id']; } }