From 79dae7b192c3c50534990e1145a852c3edd69910 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 17 Jun 2020 16:37:00 +0200 Subject: [PATCH] wip #3712 @0.5 --- config/database.php | 21 +++++++++++++++++++++ public/index.php | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/config/database.php b/config/database.php index b42d9b30a..ace71ad39 100644 --- a/config/database.php +++ b/config/database.php @@ -63,6 +63,27 @@ return [ ]) : [], ], + 'extranet_users' => [ + 'driver' => 'mysql', + 'url' => env('DATABASE_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '3306'), + 'database' => env('DB_USER_DATABASE', 'extranet_users'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', ''), + 'unix_socket' => env('DB_SOCKET', ''), + 'charset' => 'utf8mb4', + 'collation' => 'utf8mb4_unicode_ci', + 'prefix' => '', + 'prefix_indexes' => true, + 'strict' => true, + 'engine' => null, + 'options' => extension_loaded('pdo_mysql') ? array_filter([ + PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), + ]) : [], + ], + + 'pgsql' => [ 'driver' => 'pgsql', 'url' => env('DATABASE_URL'), diff --git a/public/index.php b/public/index.php index 4584cbcd6..ad897c766 100644 --- a/public/index.php +++ b/public/index.php @@ -9,6 +9,7 @@ define('LARAVEL_START', microtime(true)); +require_once __DIR__.'/../vendor/cubist/cms-back/src/app/helpers.php'; /* |-------------------------------------------------------------------------- | Register The Auto Loader @@ -20,7 +21,6 @@ define('LARAVEL_START', microtime(true)); | loading any of our classes later on. It feels great to relax. | */ - require __DIR__.'/../vendor/autoload.php'; /* -- 2.39.5