diff --git a/app/Console/Commands/ClearCachesAll.php b/app/Console/Commands/ClearCachesAll.php index a4ab10d..2e46171 100644 --- a/app/Console/Commands/ClearCachesAll.php +++ b/app/Console/Commands/ClearCachesAll.php @@ -77,6 +77,13 @@ class ClearCachesAll extends Command $output = []; $returnVar = null; exec('php artisan supervisor:restart 2>&1', $output, $returnVar); + + // output result of command RestartSupervisor + if ($returnVar === 0) { + $this->info("Restart Supervisor ran successfully:\n" . implode("\n", $output)); + } else { + $this->error("Restart Supervisor failed:\n" . implode("\n", $output)); + } $this->info("All caches have been cleared."); }