Now without PHP errors.

This commit is contained in:
James Cole 2017-11-29 16:26:00 +01:00
parent dedf774bf2
commit 4dee6a9f59
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 7 additions and 9 deletions

View File

@ -8,8 +8,6 @@ APP_URL=http://localhost
TRUSTED_PROXIES=
DB_CONNECTION=pgsql
# no DB info, is in database URL.
BROADCAST_DRIVER=log
CACHE_DRIVER=file

View File

@ -28,13 +28,13 @@ $username = '';
$password = '';
$database = '';
+if (!($databaseUrl === false)) {
$options = parse_url($databaseUrl);
$host = $options['host'];
$username = $options['user'];
$password = $options['pass'];
$database = substr($options['path'], 1);
}
if (!($databaseUrl === false)) {
$options = parse_url($databaseUrl);
$host = $options['host'];
$username = $options['user'];
$password = $options['pass'];
$database = substr($options['path'], 1);
}
return [