You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aquaculture/app/Console/Commands/ClearCache.php

43 lines
747 B

<?php
namespace App\Console\Commands;
class ClearCache extends BaseCommand
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'moon:clear';
/**
* The console command description.
*
* @var string
*/
protected $description = 'clear moon:cache cache information';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* 清除所有缓存
*
* @return mixed
*/
public function handle()
{
$this->call('config:clear');
$this->call('route:clear');
$this->call('view:clear');
}
}