Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.55 KB | None | 0 0
  1. <?php
  2.  
  3. return [
  4.  
  5.     /*
  6.     |--------------------------------------------------------------------------
  7.     | Default Database Connection Name
  8.     |--------------------------------------------------------------------------
  9.     |
  10.     | Here you may specify which of the database connections below you wish
  11.     | to use as your default connection for all database work. Of course
  12.     | you may use many connections at once using the Database library.
  13.     |
  14.     */
  15.  
  16.     'default' => env('DB_CONNECTION', 'mysql'),
  17.  
  18.     /*
  19.     |--------------------------------------------------------------------------
  20.     | Database Connections
  21.     |--------------------------------------------------------------------------
  22.     |
  23.     | Here are each of the database connections setup for your application.
  24.     | Of course, examples of configuring each database platform that is
  25.     | supported by Laravel is shown below to make development simple.
  26.     |
  27.     |
  28.     | All database work in Laravel is done through the PHP PDO facilities
  29.     | so make sure you have the driver for your particular database of
  30.     | choice installed on your machine before you begin development.
  31.     |
  32.     */
  33.  
  34.     'connections' => [
  35.  
  36.         'sqlite' => [
  37.             'driver' => 'sqlite',
  38.             'database' => env('DB_DATABASE', database_path('database.sqlite')),
  39.             'prefix' => '',
  40.         ],
  41.  
  42.         'mysql' => [
  43.             'driver' => 'mysql',
  44.             'host' => env('DB_HOST', '127.0.0.1'),
  45.             'port' => env('DB_PORT', '3306'),
  46.             'database' => env('DB_DATABASE', 'mi_base_de_datos'),
  47.             'username' => env('DB_USERNAME', 'root'),
  48.             'password' => env('DB_PASSWORD', ''),
  49.             'charset' => 'utf8mb4',
  50.             'collation' => 'utf8mb4_unicode_ci',
  51.             'prefix' => '',
  52.             'strict' => true,
  53.             'engine' => null,
  54.         ],
  55.  
  56.         'pgsql' => [
  57.             'driver' => 'pgsql',
  58.             'host' => env('DB_HOST', '127.0.0.1'),
  59.             'port' => env('DB_PORT', '5432'),
  60.             'database' => env('DB_DATABASE', 'forge'),
  61.             'username' => env('DB_USERNAME', 'forge'),
  62.             'password' => env('DB_PASSWORD', ''),
  63.             'charset' => 'utf8',
  64.             'prefix' => '',
  65.             'schema' => 'public',
  66.             'sslmode' => 'prefer',
  67.         ],
  68.  
  69.     ],
  70.  
  71.     /*
  72.     |--------------------------------------------------------------------------
  73.     | Migration Repository Table
  74.     |--------------------------------------------------------------------------
  75.     |
  76.     | This table keeps track of all the migrations that have already run for
  77.     | your application. Using this information, we can determine which of
  78.     | the migrations on disk haven't actually been run in the database.
  79.     |
  80.     */
  81.  
  82.     'migrations' => 'migrations',
  83.  
  84.     /*
  85.     |--------------------------------------------------------------------------
  86.     | Redis Databases
  87.     |--------------------------------------------------------------------------
  88.     |
  89.     | Redis is an open source, fast, and advanced key-value store that also
  90.     | provides a richer set of commands than a typical key-value systems
  91.     | such as APC or Memcached. Laravel makes it easy to dig right in.
  92.     |
  93.     */
  94.  
  95.     'redis' => [
  96.  
  97.         'client' => 'predis',
  98.  
  99.         'default' => [
  100.             'host' => env('REDIS_HOST', '127.0.0.1'),
  101.             'password' => env('REDIS_PASSWORD', null),
  102.             'port' => env('REDIS_PORT', 6379),
  103.             'database' => 0,
  104.         ],
  105.  
  106.     ],
  107.  
  108. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement