安装引导
This commit is contained in:
parent
c369003a28
commit
87e5ef5800
|
|
@ -17,6 +17,9 @@ class WelcomeController extends Controller
|
|||
{
|
||||
public function index()
|
||||
{
|
||||
if (installed()) {
|
||||
exit('Already installed');
|
||||
}
|
||||
return view('installer::welcome');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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=false\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,8 +107,8 @@ class EnvironmentManager
|
|||
'DB_DATABASE='.$request->database_name."\n".
|
||||
'DB_USERNAME='.$request->database_username."\n".
|
||||
'DB_PASSWORD='.$request->database_password."\n\n".
|
||||
'BROADCAST_DRIVER=log\n'.
|
||||
'CACHE_DRIVER=file\n'.
|
||||
'BROADCAST_DRIVER=log'."\n".
|
||||
'CACHE_DRIVER=file'."\n".
|
||||
'SESSION_DRIVER=file'."\n".
|
||||
'QUEUE_DRIVER=sync'."\n\n".
|
||||
'MAIL_DRIVER='.$request->mail_driver."\n".
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ class CreateTables extends Migration
|
|||
$table->string('type')->comment('类型,包括 system、plugin');
|
||||
$table->string('space')->comment('配置组, 比如 stripe, paypal, flat_shipping');
|
||||
$table->string('name')->comment('配置名称, 类似字段名');
|
||||
$table->string('value')->comment('配置值');
|
||||
$table->text('value')->comment('配置值');
|
||||
$table->boolean('json')->default(false);
|
||||
$table->timestamps();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue