validate(); auth()->user()->scripts()->create([ 'name' => $this->name, 'path' => str($this->path)->remove('.sh')->lower()->kebab()->toString(), 'content' => $this->content ]); $this->reset(['name', 'path', 'content']); } public function render() { return view('livewire.forms.new-script'); } }