database.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Database Connections
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here are each of the database connections setup for your application.
  9. | Of course, examples of configuring each database platform that is
  10. | supported by Laravel is shown below to make development simple.
  11. |
  12. |
  13. | All database work in Laravel is done through the PHP PDO facilities
  14. | so make sure you have the driver for your particular database of
  15. | choice installed on your machine before you begin development.
  16. |
  17. */
  18. 'connections' => [
  19. 'mysql' => [
  20. 'driver' => 'mysql',
  21. 'host' => 'localhost',
  22. 'database' => 'homestead',
  23. 'username' => 'homestead',
  24. 'password' => 'secret',
  25. 'charset' => 'utf8',
  26. 'collation' => 'utf8_unicode_ci',
  27. 'prefix' => '',
  28. ],
  29. 'pgsql' => [
  30. 'driver' => 'pgsql',
  31. 'host' => 'localhost',
  32. 'database' => 'homestead',
  33. 'username' => 'homestead',
  34. 'password' => 'secret',
  35. 'charset' => 'utf8',
  36. 'prefix' => '',
  37. 'schema' => 'public',
  38. ],
  39. ],
  40. ];