You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
4.2 KiB

11 years ago
11 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. <?php
  2. /*
  3. * This file is part of Bootstrap CMS.
  4. *
  5. * (c) Graham Campbell <graham@alt-three.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. return [
  11. /*
  12. |--------------------------------------------------------------------------
  13. | PDO Fetch Style
  14. |--------------------------------------------------------------------------
  15. |
  16. | By default, database results will be returned as instances of the PHP
  17. | stdClass object; however, you may desire to retrieve records in an
  18. | array format for simplicity. Here you can tweak the fetch style.
  19. |
  20. */
  21. 'fetch' => PDO::FETCH_CLASS,
  22. /*
  23. |--------------------------------------------------------------------------
  24. | Default Database Connection Name
  25. |--------------------------------------------------------------------------
  26. |
  27. | Here you may specify which of the database connections below you wish
  28. | to use as your default connection for all database work. Of course
  29. | you may use many connections at once using the Database library.
  30. |
  31. */
  32. 'default' => env('DB_CONNECTION', 'mysql'),
  33. /*
  34. |--------------------------------------------------------------------------
  35. | Database Connections
  36. |--------------------------------------------------------------------------
  37. |
  38. | Here are each of the database connections setup for your application.
  39. | Of course, examples of configuring each database platform that is
  40. | supported by Laravel is shown below to make development simple.
  41. |
  42. | All database work in Laravel is done through the PHP PDO facilities
  43. | so make sure you have the driver for your particular database of
  44. | choice installed on your machine before you begin development.
  45. |
  46. */
  47. 'connections' => [
  48. 'sqlite' => [
  49. 'driver' => 'sqlite',
  50. 'database' => env('DB_HOST', storage_path('database.sqlite')),
  51. 'prefix' => '',
  52. ],
  53. 'mysql' => [
  54. 'driver' => 'mysql',
  55. 'host' => env('DB_HOST', 'localhost'),
  56. 'database' => env('DB_DATABASE', 'forge'),
  57. 'username' => env('DB_USERNAME', 'forge'),
  58. 'password' => env('DB_PASSWORD', ''),
  59. 'charset' => 'utf8',
  60. 'collation' => 'utf8_unicode_ci',
  61. 'prefix' => '',
  62. 'strict' => false,
  63. ],
  64. 'pgsql' => [
  65. 'driver' => 'pgsql',
  66. 'host' => env('DB_HOST', 'localhost'),
  67. 'database' => env('DB_DATABASE', 'forge'),
  68. 'username' => env('DB_USERNAME', 'forge'),
  69. 'password' => env('DB_PASSWORD', ''),
  70. 'charset' => 'utf8',
  71. 'prefix' => '',
  72. 'schema' => 'public',
  73. ],
  74. 'sqlsrv' => [
  75. 'driver' => 'sqlsrv',
  76. 'host' => env('DB_HOST', 'localhost'),
  77. 'database' => env('DB_DATABASE', 'forge'),
  78. 'username' => env('DB_USERNAME', 'forge'),
  79. 'password' => env('DB_PASSWORD', ''),
  80. 'charset' => 'utf8',
  81. 'prefix' => '',
  82. ],
  83. ],
  84. /*
  85. |--------------------------------------------------------------------------
  86. | Migration Repository Table
  87. |--------------------------------------------------------------------------
  88. |
  89. | This table keeps track of all the migrations that have already run for
  90. | your application. Using this information, we can determine which of
  91. | the migrations on disk haven't actually been run in the database.
  92. |
  93. */
  94. 'migrations' => 'migrations',
  95. /*
  96. |--------------------------------------------------------------------------
  97. | Redis Databases
  98. |--------------------------------------------------------------------------
  99. |
  100. | Redis is an open source, fast, and advanced key-value store that also
  101. | provides a richer set of commands than a typical key-value systems
  102. | such as APC or Memcached. Laravel makes it easy to dig right in.
  103. |
  104. */
  105. 'redis' => [
  106. 'cluster' => false,
  107. 'default' => [
  108. 'host' => '127.0.0.1',
  109. 'port' => 6379,
  110. 'database' => 0,
  111. ],
  112. ],
  113. ];