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