安装引导程序
This commit is contained in:
parent
5a06a7511e
commit
8014a361da
|
|
@ -98,7 +98,7 @@ class EnvironmentManager
|
|||
'APP_NAME=\''.$request->app_name."'\n".
|
||||
'APP_ENV='.$request->environment."\n".
|
||||
'APP_KEY='.'base64:'.base64_encode(Str::random(32))."\n".
|
||||
'APP_DEBUG='.$request->app_debug."\n".
|
||||
'APP_DEBUG=false\n'.
|
||||
'APP_LOG_LEVEL='.$request->app_log_level."\n".
|
||||
'APP_URL='.$request->app_url."\n\n".
|
||||
'DB_CONNECTION='.$request->database_connection."\n".
|
||||
|
|
@ -107,22 +107,16 @@ class EnvironmentManager
|
|||
'DB_DATABASE='.$request->database_name."\n".
|
||||
'DB_USERNAME='.$request->database_username."\n".
|
||||
'DB_PASSWORD='.$request->database_password."\n\n".
|
||||
'BROADCAST_DRIVER='.$request->broadcast_driver."\n".
|
||||
'CACHE_DRIVER='.$request->cache_driver."\n".
|
||||
'SESSION_DRIVER='.$request->session_driver."\n".
|
||||
'QUEUE_DRIVER='.$request->queue_driver."\n\n".
|
||||
'REDIS_HOST='.$request->redis_hostname."\n".
|
||||
'REDIS_PASSWORD='.$request->redis_password."\n".
|
||||
'REDIS_PORT='.$request->redis_port."\n\n".
|
||||
'BROADCAST_DRIVER=log\n'.
|
||||
'CACHE_DRIVER=file\n'.
|
||||
'SESSION_DRIVER=file'."\n".
|
||||
'QUEUE_DRIVER=sync'."\n\n".
|
||||
'MAIL_DRIVER='.$request->mail_driver."\n".
|
||||
'MAIL_HOST='.$request->mail_host."\n".
|
||||
'MAIL_PORT='.$request->mail_port."\n".
|
||||
'MAIL_USERNAME='.$request->mail_username."\n".
|
||||
'MAIL_PASSWORD='.$request->mail_password."\n".
|
||||
'MAIL_ENCRYPTION='.$request->mail_encryption."\n\n".
|
||||
'PUSHER_APP_ID='.$request->pusher_app_id."\n".
|
||||
'PUSHER_APP_KEY='.$request->pusher_app_key."\n".
|
||||
'PUSHER_APP_SECRET='.$request->pusher_app_secret;
|
||||
'MAIL_ENCRYPTION='.$request->mail_encryption."\n\n";
|
||||
|
||||
try {
|
||||
file_put_contents($this->envPath, $envFileData);
|
||||
|
|
|
|||
|
|
@ -73,9 +73,6 @@ return [
|
|||
'mail_username' => 'required|string|max:50',
|
||||
'mail_password' => 'required|string|max:50',
|
||||
'mail_encryption' => 'required|string|max:50',
|
||||
'pusher_app_id' => 'max:50',
|
||||
'pusher_app_key' => 'max:50',
|
||||
'pusher_app_secret' => 'max:50',
|
||||
],
|
||||
],
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue