get('notification'); if ($hasNotification) { $this->js(<<<'JS' const url = new URL(window.location); url.search = ''; window.history.replaceState({}, '', url); JS); $this->toast($hasNotification); } } public function delete(Article $article): void { $this->canOrAbort('delete article'); $article->delete(); $this->dispatch('refreshDatatable'); $this->toast('Artikel berhasil dihapus.'); Flux::modals()->close(); } public function render(): View { return view('livewire.studio.manage.article.index', [ 'pageTitle' => 'Artikel', ]); } }