mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 01:11:46 +08:00 
			
		
		
		
	optimization install
This commit is contained in:
		| @@ -3,6 +3,7 @@ | ||||
| namespace App\Console\Commands; | ||||
|  | ||||
| use Illuminate\Console\Command; | ||||
| use Illuminate\Encryption\Encrypter; | ||||
| use App\Models\User; | ||||
| use App\Utils\Helper; | ||||
| use Illuminate\Support\Facades\DB; | ||||
| @@ -49,7 +50,7 @@ class V2boardInstall extends Command | ||||
|             } | ||||
|         } | ||||
|         $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_DATABASE' => $this->ask('请输入数据库名'), | ||||
|             'DB_USERNAME' => $this->ask('请输入数据库用户名'), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user