'required|string|max:100', 'cognome' => 'required|string|max:100', 'attivo' => 'boolean', ]; } public function save() { $this->validate(); $proclamatore = Proclamatore::create([ 'nome' => $this->nome, 'cognome' => $this->cognome, 'attivo' => $this->attivo, ]); activity()->causedBy(auth()->user()) ->performedOn($proclamatore) ->log('created'); session()->flash('success', "Proclamatore {$proclamatore->nome_completo} creato."); return $this->redirect(route('proclamatori.index'), navigate: true); } public function render() { return view('livewire.proclamatori.proclamatore-form', [ 'titolo' => 'Nuovo Proclamatore', 'btnLabel' => 'Crea Proclamatore', ]); } }