canGate && $this->canResource && $this->autoDisable) { $hasPermission = Gate::allows($this->canGate, $this->canResource); if (! $hasPermission) { $this->disabled = true; } } } /** * Get the view / contents that represent the component. */ public function render(): View|Closure|string { if (is_null($this->id)) { $this->id = new Cuid2; } if (is_null($this->name)) { $this->name = $this->id; } // $this->label = Str::title($this->label); return view('components.forms.textarea'); } }