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/UninstallShop.php

49 lines
800 B

<?php
namespace App\Console\Commands;
class UninstallShop extends BaseCommand
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'moon:uninstall';
/**
* The console command description.
*
* @var string
*/
protected $description = '卸载商城项目';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$this->call('moon:clear');
$this->call('migrate:reset');
// delete all upload static resources
$this->call('moon:delete');
}
}