diff --git a/app/Console/Commands/ClearAllCaches.php b/app/Console/Commands/ClearAllCaches.php new file mode 100644 index 0000000..2dea67e --- /dev/null +++ b/app/Console/Commands/ClearAllCaches.php @@ -0,0 +1,41 @@ +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->info('All caches cleared.'); + } +}