form->setPerfume($perfume); $this->outlets = Outlet::pluck('name', 'id')->toArray(); $this->brands = Brand::pluck('name', 'id')->toArray(); $this->categories = Category::pluck('name', 'id')->toArray(); } public function save() { $this->canOrAbort('update perfume'); $this->form->update(); $this->dispatch('refreshDatatable'); $this->toast('Parfum berhasil diperbarui.'); $this->redirectRoute('studio.catalog.perfume.index'); } public function render() { return view('livewire.studio.catalog.perfume.form', [ 'pageTitle' => 'Ubah Parfum', ]); } }