2022-08-12 07:56:56 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Str;
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Default Database Connection Name
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here you may specify which of the database connections below you wish
|
|
|
|
| to use as your default connection for all database work. Of course
|
|
|
|
| you may use many connections at once using the Database library.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'default' => env('DB_CONNECTION', 'mysql'),
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Database Connections
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here are each of the database connections setup for your application.
|
|
|
|
| Of course, examples of configuring each database platform that is
|
|
|
|
| supported by Laravel is shown below to make development simple.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| All database work in Laravel is done through the PHP PDO facilities
|
|
|
|
| so make sure you have the driver for your particular database of
|
|
|
|
| choice installed on your machine before you begin development.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'connections' => [
|
|
|
|
'mysql' => [
|
|
|
|
'driver' => 'mysql',
|
|
|
|
'host' => env('DB_HOST', '127.0.0.1'),
|
2022-09-08 16:12:02 +00:00
|
|
|
'port' => env('DB_PORT', 3306),
|
2022-08-12 07:56:56 +00:00
|
|
|
'database' => env('DB_DATABASE', 'forge'),
|
|
|
|
'username' => env('DB_USERNAME', 'forge'),
|
|
|
|
'password' => env('DB_PASSWORD', ''),
|
|
|
|
'unix_socket' => env('DB_SOCKET', ''),
|
2022-09-08 16:12:02 +00:00
|
|
|
'charset' => env('DB_CHARSET', 'utf8mb4'),
|
|
|
|
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
|
|
|
|
'prefix' => env('DB_PREFIX', ''),
|
|
|
|
'strict' => env('DB_STRICT_MODE', true),
|
|
|
|
'engine' => env('DB_ENGINE'),
|
2022-10-29 04:36:15 +00:00
|
|
|
'timezone' => env('DB_TIMEZONE', '+08:00'),
|
2022-09-08 16:12:02 +00:00
|
|
|
'options' => [
|
|
|
|
PDO::ATTR_PERSISTENT => true,
|
|
|
|
],
|
2022-08-12 07:56:56 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'pgsql' => [
|
|
|
|
'driver' => 'pgsql',
|
|
|
|
'host' => env('DB_HOST', '127.0.0.1'),
|
2022-09-08 16:12:02 +00:00
|
|
|
'port' => env('DB_PORT', 5432),
|
2022-08-12 07:56:56 +00:00
|
|
|
'database' => env('DB_DATABASE', 'forge'),
|
|
|
|
'username' => env('DB_USERNAME', 'forge'),
|
|
|
|
'password' => env('DB_PASSWORD', ''),
|
2022-09-08 16:12:02 +00:00
|
|
|
'charset' => env('DB_CHARSET', 'utf8'),
|
|
|
|
'prefix' => env('DB_PREFIX', ''),
|
|
|
|
'search_path' => env('DB_SCHEMA', 'public'),
|
|
|
|
'sslmode' => env('DB_SSL_MODE', 'prefer'),
|
2022-08-12 07:56:56 +00:00
|
|
|
],
|
2022-09-14 13:27:27 +00:00
|
|
|
|
|
|
|
'mongodb' => [
|
|
|
|
'driver' => 'mongodb',
|
|
|
|
'host' => env('MONGO_DB_HOST', '127.0.0.1'),
|
|
|
|
'port' => env('MONGO_DB_PORT', 27017),
|
|
|
|
'database' => env('MONGO_DB_DATABASE', 'homestead'),
|
|
|
|
'username' => env('MONGO_DB_USERNAME', 'homestead'),
|
|
|
|
'password' => env('MONGO_DB_PASSWORD', 'secret'),
|
|
|
|
'options' => [
|
|
|
|
// here you can pass more settings to the Mongo Driver Manager
|
|
|
|
// see https://www.php.net/manual/en/mongodb-driver-manager.construct.php under "Uri Options" for a list of complete parameters that you can use
|
|
|
|
|
|
|
|
'database' => env('MONGO_DBDB_AUTHENTICATION_DATABASE', 'admin'), // required with Mongo 3+
|
|
|
|
],
|
|
|
|
],
|
2022-08-12 07:56:56 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Migration Repository Table
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This table keeps track of all the migrations that have already run for
|
|
|
|
| your application. Using this information, we can determine which of
|
|
|
|
| the migrations on disk haven't actually been run in the database.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'migrations' => 'migrations',
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Redis Databases
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Redis is an open source, fast, and advanced key-value store that also
|
2022-09-08 16:12:02 +00:00
|
|
|
| provides a richer set of commands than a typical key-value systems
|
2022-08-12 07:56:56 +00:00
|
|
|
| such as APC or Memcached. Laravel makes it easy to dig right in.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
'redis' => [
|
|
|
|
|
|
|
|
'client' => env('REDIS_CLIENT', 'phpredis'),
|
|
|
|
|
|
|
|
'options' => [
|
|
|
|
'cluster' => env('REDIS_CLUSTER', 'redis'),
|
2022-09-09 04:01:14 +00:00
|
|
|
// 'scheme' => 'tls',
|
2022-09-09 03:56:20 +00:00
|
|
|
'prefix' => 'laecloud_database_',
|
2022-08-12 07:56:56 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'default' => [
|
|
|
|
'url' => env('REDIS_URL'),
|
|
|
|
'host' => env('REDIS_HOST', '127.0.0.1'),
|
|
|
|
'password' => env('REDIS_PASSWORD'),
|
|
|
|
'port' => env('REDIS_PORT', '6379'),
|
2022-10-30 07:07:26 +00:00
|
|
|
'database' => env('REDIS_DB', 0),
|
2022-09-09 04:56:23 +00:00
|
|
|
'persistent' => true,
|
2022-08-12 07:56:56 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
'cache' => [
|
|
|
|
'url' => env('REDIS_URL'),
|
|
|
|
'host' => env('REDIS_HOST', '127.0.0.1'),
|
|
|
|
'password' => env('REDIS_PASSWORD'),
|
|
|
|
'port' => env('REDIS_PORT', '6379'),
|
2022-10-30 07:07:26 +00:00
|
|
|
'database' => env('REDIS_CACHE_DB', 1),
|
|
|
|
],
|
|
|
|
|
|
|
|
'cluster_ready' => [
|
|
|
|
'url' => env('REDIS_URL'),
|
|
|
|
'host' => env('REDIS_HOST', '127.0.0.1'),
|
|
|
|
'password' => env('REDIS_PASSWORD'),
|
|
|
|
'port' => env('REDIS_PORT', '6379'),
|
|
|
|
'database' => env('REDIS_CACHE_DB', 2),
|
2022-08-12 07:56:56 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|