form->setArticle($article); $this->categories = Category::article()->pluck('name', 'id')->toArray(); } public function save(): void { $this->canOrAbort('update article'); $this->form->update(); $this->redirectRoute('studio.manage.article.index', [ 'notification' => 'Artikel berhasil diperbarui.', ], navigate: true); } public function render(): View { return view('livewire.studio.manage.article.form', [ 'pageTitle' => 'Ubah Artikel', 'categories' => Category::query()->where('type', CategoryType::ARTICLE)->orderBy('sort_order')->get(), ]); } }