update($this->project, $this->inputs); $this->redirect(route('projects')); } public function mount(): void { $this->inputs = [ 'name' => $this->project->name, ]; } public function render(): View { return view('livewire.projects.edit-project'); } }