Fix APP_URL being called SITE_URL

This commit is contained in:
Nabeel Shahzad 2021-04-20 23:28:57 -04:00
parent 61739ce266
commit 2545328233
5 changed files with 6 additions and 6 deletions

View File

@ -210,7 +210,7 @@ class InstallerController extends Controller
// Now write out the env file
$attrs = [
'SITE_NAME' => $request->post('site_name'),
'SITE_URL' => $request->post('site_url'),
'APP_URL' => $request->post('app_url'),
'DB_CONNECTION' => $request->post('db_conn'),
'DB_HOST' => $request->post('db_host'),
'DB_PORT' => $request->post('db_port'),

View File

@ -22,7 +22,7 @@ class ConfigService extends Service
'APP_LOCALE' => 'en',
'DEBUG_TOOLBAR' => false,
'SITE_NAME' => '',
'SITE_URL' => 'http://phpvms.test',
'APP_URL' => 'http://phpvms.test',
'DB_CONNECTION' => '',
'DB_HOST' => '',
'DB_PORT' => 3306,
@ -93,7 +93,7 @@ class ConfigService extends Service
'APP_LOCALE' => config('app.locale'),
'DEBUG_TOOLBAR' => config('app.debug_toolbar') ? 'true' : 'false',
'SITE_NAME' => config('app.name'),
'SITE_URL' => config('app.url'),
'APP_URL' => config('app.url'),
'DB_CONNECTION' => config('database.default'),
'DB_HOST' => config('database.connections.mysql.host'),
'DB_PORT' => config('database.connections.mysql.port'),

View File

@ -10,7 +10,7 @@ return [
// Overrides config/app.php
'app' => [
'name' => '$SITE_NAME$',
'url' => '$SITE_URL$',
'url' => '$APP_URL$',
// When live, 'env' should be 'prod'
'env' => 'prod',

View File

@ -15,7 +15,7 @@
APP_KEY='$APP_KEY$'
APP_NAME='$SITE_NAME$'
SITE_NAME='$SITE_NAME$'
SITE_URL='$SITE_URL$'
APP_URL='$APP_URL$'
APP_ENV=$APP_ENV$
APP_LOCALE=$APP_LOCALE$
LOG_LEVEL=debug

View File

@ -22,7 +22,7 @@
<td>Site URL</td>
<td style="text-align:center;">
<div class="form-group">
{{ Form::input('text', 'site_url', Request::root(), ['class' => 'form-control']) }}
{{ Form::input('text', 'app_url', Request::root(), ['class' => 'form-control']) }}
</div>
</td>
</tr>