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(): void { $this->canOrAbort('update perfume'); $this->form->update(); $this->redirectRoute('studio.catalog.perfume.index', [ 'notification' => 'Parfum berhasil diperbarui.', ], navigate: true); } public function render(): View { return view('livewire.studio.catalog.perfume.form', [ 'pageTitle' => 'Ubah Parfum', ]); } }