user()->can('destroy', Invitation::find(request('id'))); } /** * Get the validation rules that apply to the request. * * @return array */ public function _rules(): array { return ['id' => 'required|int|exists:invitations,id']; } }