uninstallPlugin($this->plugin); Notification::make() ->success() ->title(trans('admin/plugin.notifications.uninstalled')) ->body($this->plugin->name) ->actions([ Action::make('goto_plugins') ->label(trans('admin/plugin.notifications.goto_plugins')) ->url(ListPlugins::getUrl(panel: 'admin')), ]) ->sendToDatabase($this->user); } catch (Exception $exception) { report($exception); Notification::make() ->danger() ->title(trans('admin/plugin.notifications.uninstall_error')) ->body($exception->getMessage()) ->sendToDatabase($this->user); } } public function uniqueId(): string { return 'plugin:uninstall:' . $this->plugin->id; } }