diff --git a/app/Http/ViewComposers/Header.php b/app/Http/ViewComposers/Header.php index e71bf86eb..6ec460c4c 100644 --- a/app/Http/ViewComposers/Header.php +++ b/app/Http/ViewComposers/Header.php @@ -60,7 +60,9 @@ class Header $updates = count(Updater::all()); - $this->loadSuggestions(); + if (!env('APP_INSTALLED', false)) { + $this->loadSuggestions(); + } $view->with([ 'user' => $user, diff --git a/app/Http/ViewComposers/Suggestions.php b/app/Http/ViewComposers/Suggestions.php index efb4a65f6..37067b763 100644 --- a/app/Http/ViewComposers/Suggestions.php +++ b/app/Http/ViewComposers/Suggestions.php @@ -20,7 +20,7 @@ class Suggestions public function compose(View $view) { // No need to add suggestions in console - if (app()->runningInConsole()) { + if (app()->runningInConsole() || !env('APP_INSTALLED', false)) { return; }