mirror of
https://github.com/v2board/v2board.git
synced 2025-02-11 16:00:27 +08:00
optimization install
This commit is contained in:
parent
43d98a485d
commit
f7558fecc7
@ -3,6 +3,7 @@
|
|||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
use Illuminate\Encryption\Encrypter;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Utils\Helper;
|
use App\Utils\Helper;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
@ -49,7 +50,7 @@ class V2boardInstall extends Command
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->saveToEnv([
|
$this->saveToEnv([
|
||||||
'APP_KEY' => 'base64:' . base64_encode(\Encrypter::generateKey('AES-256-CBC')),
|
'APP_KEY' => 'base64:' . base64_encode(Encrypter::generateKey('AES-256-CBC')),
|
||||||
'DB_HOST' => $this->ask('请输入数据库地址(默认:localhost)', 'localhost'),
|
'DB_HOST' => $this->ask('请输入数据库地址(默认:localhost)', 'localhost'),
|
||||||
'DB_DATABASE' => $this->ask('请输入数据库名'),
|
'DB_DATABASE' => $this->ask('请输入数据库名'),
|
||||||
'DB_USERNAME' => $this->ask('请输入数据库用户名'),
|
'DB_USERNAME' => $this->ask('请输入数据库用户名'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user