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('create perfume'); $this->form->store(); StorePushNotification::dispatch( PushNotification::all(), [ 'title' => '✨ Aroma Baru!', 'body' => 'Ada yang baru nih! Aroma terbaru sudah siap kamu coba. Yuk cobain dulu sebelum kehabisan! 🌸✨', ], ); $this->dispatch('refreshDatatable'); $this->toast('Parfum berhasil ditambahkan.'); $this->redirectRoute('studio.catalog.perfume.index'); } public function render(): View { return view('livewire.studio.catalog.perfume.form', [ 'pageTitle' => 'Tambah Parfum', ]); } }