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