route('chat'); return $chat && $this->user()->can('view', $chat->chatable); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules(): array { return [ 'content' => ['required', 'string'], ]; } }