Files
UNIT3D-Community-Edition/app/Console/Commands/SetCache.php
2018-12-06 14:42:13 +00:00

57 lines
1.2 KiB
PHP

<?php
/**
* NOTICE OF LICENSE.
*
* UNIT3D is open-sourced software licensed under the GNU General Public License v3.0
* The details is bundled with this project in the file LICENSE.txt.
*
* @project UNIT3D
*
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
* @author HDVinnie
*/
namespace App\Console\Commands;
use Illuminate\Console\Command;
class SetCache extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'set:all_cache';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Sets Several Common Cache\'s ...';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$this->comment('Setting several common cache\'s ...');
$this->call('view:cache');
$this->call('route:cache');
$this->call('config:cache');
}
}