File: /var/www/vhost/disk-apps/demo.sports-crowd.com/config/database.php
<?php
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_DEFAULT', 'cali-db'),
/*
|--------------------------------------------------------------------------
| 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' => [
'sqlite' => [
'driver' => 'sqlite',
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
],
'pasto-db' => [
'driver' => env('DB_DRIVER_PASTO', 'mysql'),
'host' => env('DB_HOST_PASTO', '127.0.0.1'),
'port' => env('DB_PORT_PASTO', '3306'),
'database' => env('DB_DATABASE_PASTO', 'forge'),
'username' => env('DB_USERNAME_PASTO', 'forge'),
'password' => env('DB_PASSWORD_PASTO', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
'cali-db' => [
'driver' => env('DB_DRIVER_CALI', 'mysql'),
'read' => [
'host' => [
env('DB_HOST_READER', '127.0.0.1'), // Read connection (replica)
],
],
'write' => [
'host' => [
env('DB_HOST_WRITER', '127.0.0.1'), // Read connection (replica)
],
],
'port' => env('DB_PORT_CALI', '3306'),
'database' => env('DB_DATABASE_CALI', 'forge'),
'username' => env('DB_USERNAME_CALI', 'forge'),
'password' => env('DB_PASSWORD_CALI', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
'sticky' => true,
],
'armenia-db' => [
'driver' => env('DB_DRIVER_ARMENIA', 'mysql'),
'host' => env('DB_HOST_ARMENIA', '127.0.0.1'),
'port' => env('DB_PORT_ARMENIA', '3306'),
'database' => env('DB_DATABASE_ARMENIA', 'forge'),
'username' => env('DB_USERNAME_ARMENIA', 'forge'),
'password' => env('DB_PASSWORD_ARMENIA', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
'pereira-db' => [
'driver' => env('DB_DRIVER_PEREIRA', 'mysql'),
'host' => env('DB_HOST_PEREIRA', '127.0.0.1'),
'port' => env('DB_PORT_PEREIRA', '3306'),
'database' => env('DB_DATABASE_PEREIRA', 'forge'),
'username' => env('DB_USERNAME_PEREIRA', 'forge'),
'password' => env('DB_PASSWORD_PEREIRA', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
'manizales-db' => [
'driver' => env('DB_DRIVER_MANIZALES', 'mysql'),
'host' => env('DB_HOST_MANIZALES', '127.0.0.1'),
'port' => env('DB_PORT_MANIZALES', '3306'),
'database' => env('DB_DATABASE_MANIZALES', 'forge'),
'username' => env('DB_USERNAME_MANIZALES', 'forge'),
'password' => env('DB_PASSWORD_MANIZALES', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
'main-db' => [
'driver' => env('DB_DRIVER_MAIN', 'mysql'),
'host' => env('DB_HOST_MAIN', '127.0.0.1'),
'port' => env('DB_PORT_MAIN', '3306'),
'database' => env('DB_DATABASE_MAIN', 'forge'),
'username' => env('DB_USERNAME_MAIN', 'forge'),
'password' => env('DB_PASSWORD_MAIN', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
'sticky' => true,
],
'all-clients-db' => [
'driver' => env('DB_DRIVE_ALL_CLIENTS', 'mysql'),
'host' => env('DB_HOST_ALL_CLIENTS', '127.0.0.1'),
'port' => env('DB_PORT_ALL_CLIENTS', '3306'),
'database' => env('DB_DATABASE_ALL_CLIENTS', 'forge'),
'username' => env('DB_USERNAME_ALL_CLIENTS', 'forge'),
'password' => env('DB_PASSWORD_ALL_CLIENTS', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
'scraper' => [
'driver' => env('DB_CONNECTION_SCRAPER'),
'host' => env('DB_HOST_SCRAPER'),
'port' => env('DB_PORT_SCRAPER'),
'database' => env('DB_DATABASE_SCRAPER'),
'username' => env('DB_USERNAME_SCRAPER'),
'password' => env('DB_PASSWORD_SCRAPER'),
'table' => env('TABLE_SCRAPER'),
],
'pgsql' => [
'driver' => 'pgsql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
'sslmode' => 'prefer',
],
'sqlsrv' => [
'driver' => 'sqlsrv',
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '1433'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
],
'wp-woocommerce' => [
'driver' => env('DB_DRIVER_WP_WOOCOMMERCE', 'mysql'),
'host' => env('DB_HOST_WP_WOOCOMMERCE', '127.0.0.1'),
'port' => env('DB_PORT_WP_WOOCOMMERCE', '3306'),
'database' => env('DB_DATABASE_WP_WOOCOMMERCE', 'forge'),
'username' => env('DB_USERNAME_WP_WOOCOMMERCE', 'forge'),
'password' => env('DB_PASSWORD_WP_WOOCOMMERCE', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => false,
'engine' => null,
],
],
/*
|--------------------------------------------------------------------------
| 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
| provides a richer set of commands than a typical key-value systems
| such as APC or Memcached. Laravel makes it easy to dig right in.
|
*/
'redis' => [
'client' => 'predis',
'default' => [
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => 0,
],
],
];