Files
admin-erahn/app/Console/Commands/ClearCachesAll.php
T

43 lines
933 B
PHP

<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class ClearCachesAll extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'clear-caches-all';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Clear all caches in the application';
/**
* Execute the console command.
*/
public function handle()
{
$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('clear-sessions');
$this->info("All caches have been cleared.");;
}
}