Cachet/config/database.php

119 lines
3.8 KiB
PHP
Raw Permalink Normal View History

2015-03-20 18:30:45 -06:00
<?php
/*
* This file is part of Cachet.
*
2015-07-06 17:37:01 +01:00
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2015-03-20 18:30:45 -06:00
return [
2015-03-20 18:32:24 -06:00
/*
|--------------------------------------------------------------------------
| 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.
|
*/
2015-03-28 09:17:29 +00:00
'default' => env('DB_DRIVER', 'sqlite'),
2015-03-20 18:32:24 -06:00
/*
|--------------------------------------------------------------------------
| 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',
2016-03-24 15:25:48 +00:00
'database' => env('DB_DATABASE', database_path('database.sqlite')),
2017-01-30 14:54:25 +00:00
'prefix' => '',
2015-03-20 18:32:24 -06:00
],
'mysql' => [
2017-04-12 15:06:29 +09:00
'driver' => 'mysql',
2017-01-30 14:54:25 +00:00
'host' => env('DB_HOST', '127.0.0.1'),
2017-04-12 14:54:56 +09:00
'unix_socket' => env('DB_UNIX_SOCKET', null),
2017-04-12 15:06:29 +09:00
'port' => env('DB_PORT', '3306'),
2017-01-30 14:54:25 +00:00
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
2017-04-12 15:06:29 +09:00
'prefix' => env('DB_PREFIX', null),
'strict' => false,
'engine' => null,
2015-03-20 18:32:24 -06:00
],
'pgsql' => [
'driver' => 'pgsql',
2017-01-30 14:54:25 +00:00
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'),
2017-01-30 14:54:25 +00:00
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => env('DB_PREFIX', null),
'schema' => env('DB_SCHEMA', 'public'),
2017-01-30 14:54:25 +00:00
'sslmode' => 'prefer',
2015-03-20 18:32:24 -06: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
| 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' => [
2017-01-30 14:54:25 +00:00
'client' => 'predis',
2015-03-20 18:32:24 -06:00
'default' => [
'host' => env('REDIS_HOST', '127.0.0.1'),
2017-01-30 14:54:25 +00:00
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_DATABASE', 0),
2015-03-20 18:32:24 -06:00
],
],
2015-03-20 18:30:45 -06:00
];