From c7aab85e249a8ca4a351d10d40a74ec2c746aa5b Mon Sep 17 00:00:00 2001 From: Afiq Hamzah Date: Thu, 8 Aug 2024 12:47:50 +0800 Subject: [PATCH] Update instead of silent call, use normal command call to show all output --- app/Console/Commands/ClearAllCaches.php | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/app/Console/Commands/ClearAllCaches.php b/app/Console/Commands/ClearAllCaches.php index 2dea67e..e4ebd14 100644 --- a/app/Console/Commands/ClearAllCaches.php +++ b/app/Console/Commands/ClearAllCaches.php @@ -25,17 +25,18 @@ class ClearAllCaches extends Command */ public function handle() { - $this->callSilent('config:clear'); - $this->callSilent('cache:clear'); - $this->callSilent('event:clear'); - $this->callSilent('route:clear'); - $this->callSilent('view:clear'); - $this->callSilent('clear-compiled'); - $this->callSilent('optimize:clear'); - $this->callSilent('package:discover'); - $this->callSilent('queue:clear'); - $this->callSilent('schema:clear'); + $this->call('config:clear'); + $this->call('cache:clear'); + $this->call('event:clear'); + $this->call('route:clear'); + $this->call('view:clear'); + $this->call('clear-compiled'); + $this->call('optimize:clear'); + $this->call('package:discover'); + $this->call('queue:clear'); + $this->call('schema:clear'); + + $this->info("All caches have been cleared.");; - $this->info('All caches cleared.'); } }