plugin; Event::listen(\App\Events\RenderingFooter::class, function ($event) use ($plugin) { $user = auth()->user(); if ($user && $user->isAdmin()) { $options = json_encode([ 'type' => 'error', 'message' => trans('errors.plugins.boot', ['plugin' => trans($plugin->title)]), 'duration' => 0, 'showClose' => true, ]); $event->addContent(''); } }); } }