Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. <?php
  2.  
  3. return [
  4.  
  5. /*
  6. |--------------------------------------------------------------------------
  7. | PDO Fetch Style
  8. |--------------------------------------------------------------------------
  9. |
  10. | By default, database results will be returned as instances of the PHP
  11. | stdClass object; however, you may desire to retrieve records in an
  12. | array format for simplicity. Here you can tweak the fetch style.
  13. |
  14. */
  15.  
  16. 'fetch' => PDO::FETCH_CLASS,
  17.  
  18. /*
  19. |--------------------------------------------------------------------------
  20. | Default Database Connection Name
  21. |--------------------------------------------------------------------------
  22. |
  23. | Here you may specify which of the database connections below you wish
  24. | to use as your default connection for all database work. Of course
  25. | you may use many connections at once using the Database library.
  26. |
  27. */
  28.  
  29. 'default' => 'mysql',
  30.  
  31. /*
  32. |--------------------------------------------------------------------------
  33. | Database Connections
  34. |--------------------------------------------------------------------------
  35. |
  36. | Here are each of the database connections setup for your application.
  37. | Of course, examples of configuring each database platform that is
  38. | supported by Laravel is shown below to make development simple.
  39. |
  40. |
  41. | All database work in Laravel is done through the PHP PDO facilities
  42. | so make sure you have the driver for your particular database of
  43. | choice installed on your machine before you begin development.
  44. |
  45. */
  46.  
  47. 'connections' => [
  48.  
  49. 'sqlite' => [
  50. 'driver' => 'sqlite',
  51. 'database' => 'storage/database.sqlite',
  52. 'prefix' => '',
  53. ],
  54.  
  55. 'mysql' => [
  56. 'driver' => 'mysql',
  57. 'host' => 'localhost',
  58. 'port' => 3306,
  59. 'database' => 'np-backend',
  60. 'username' => 'root',
  61. 'password' => 'root',
  62. 'charset' => 'utf8mb4',
  63. 'collation' => 'utf8mb4_unicode_ci',
  64. 'prefix' => '',
  65. ],
  66.  
  67. 'pgsql' => [
  68. 'driver' => 'pgsql',
  69. 'host' => 'localhost',
  70. 'port' => 5432,
  71. 'database' => 'database',
  72. 'username' => 'root',
  73. 'password' => '',
  74. 'charset' => 'utf8',
  75. 'prefix' => '',
  76. 'schema' => 'public',
  77. ],
  78.  
  79. 'sqlsrv' => [
  80. 'driver' => 'sqlsrv',
  81. 'host' => 'localhost',
  82. 'port' => 1433,
  83. 'database' => 'database',
  84. 'username' => 'root',
  85. 'password' => '',
  86. 'prefix' => '',
  87. ],
  88.  
  89. ],
  90.  
  91. /*
  92. |--------------------------------------------------------------------------
  93. | Migration Repository Table
  94. |--------------------------------------------------------------------------
  95. |
  96. | This table keeps track of all the migrations that have already run for
  97. | your application. Using this information, we can determine which of
  98. | the migrations on disk have not actually be run in the databases.
  99. |
  100. */
  101.  
  102. 'migrations' => 'migrations',
  103.  
  104. /*
  105. |--------------------------------------------------------------------------
  106. | Redis Databases
  107. |--------------------------------------------------------------------------
  108. |
  109. | Redis is an open source, fast, and advanced key-value store that also
  110. | provides a richer set of commands than a typical key-value systems
  111. | such as APC or Memcached. Laravel makes it easy to dig right in.
  112. |
  113. */
  114.  
  115. 'redis' => [
  116.  
  117. 'cluster' => false,
  118.  
  119. 'default' => [
  120. 'host' => '127.0.0.1',
  121. 'password' => null,
  122. 'port' => 6379,
  123. 'database' => 0,
  124. ],
  125.  
  126. ],
  127.  
  128. /*
  129. |--------------------------------------------------------------------------
  130. | Use DB configuration for testing
  131. |--------------------------------------------------------------------------
  132. |
  133. | When running plugin tests OctoberCMS by default uses SQLite in memory.
  134. | You can override this behavior by setting `useConfigForTesting` to true.
  135. |
  136. | After that OctoberCMS will take DB parameters from the config.
  137. | If file `/config/testing/database.php` exists, config will be read from it,
  138. | but remember that when not specified it will use parameters specified in
  139. | `/config/database.php`.
  140. |
  141. */
  142.  
  143. 'useConfigForTesting' => false,
  144. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement