runningInConsole() || !env('APP_INSTALLED')) { return; } $path = Route::current()->uri(); if (empty($path)) { return; } $notifications = $this->getNotifications($path); if (empty($notifications)) { return; } // Push to a stack foreach ($notifications as $notification) { $view->getFactory()->startPush('content_content_start', $notification->message); } } }