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('create perfume'); $this->form->store(); $this->dispatch('refreshDatatable'); $this->toast('Parfum berhasil ditambahkan.'); $this->redirectRoute('studio.catalog.perfume.index', navigate: true); } public function render() { return view('livewire.studio.catalog.perfume.form', [ 'pageTitle' => 'Tambah Parfum', ]); } }