mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update
This commit is contained in:
parent
b3d73e5417
commit
2514bf4638
@ -7,21 +7,21 @@ use App\Models\User;
|
|||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
class V2boardInit extends Command
|
class V2boardInstall extends Command
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The name and signature of the console command.
|
* The name and signature of the console command.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $signature = 'v2board:init';
|
protected $signature = 'v2board:install';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The console command description.
|
* The console command description.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $description = 'v2board 初始化';
|
protected $description = 'v2board 安装';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new command instance.
|
* Create a new command instance.
|
||||||
@ -41,7 +41,7 @@ class V2boardInit extends Command
|
|||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
if (\File::exists(base_path() . '/.lock')) {
|
if (\File::exists(base_path() . '/.lock')) {
|
||||||
abort(500, 'V2board 已安装,如需重新初始化请删除目录下.lock文件');
|
abort(500, 'V2board 已安装,如需重新安装请删除目录下.lock文件');
|
||||||
}
|
}
|
||||||
\Artisan::call('key:generate');
|
\Artisan::call('key:generate');
|
||||||
\Artisan::call('config:cache');
|
\Artisan::call('config:cache');
|
Loading…
Reference in New Issue
Block a user