luigi01lopez

database.php

Feb 4th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. <?php
  2.  
  3. return [
  4.  
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Database Connections
  8. |--------------------------------------------------------------------------
  9. |
  10. | Here are each of the database connections setup for your application.
  11. | Of course, examples of configuring each database platform that is
  12. | supported by Laravel is shown below to make development simple.
  13. |
  14. |
  15. | All database work in Laravel is done through the PHP PDO facilities
  16. | so make sure you have the driver for your particular database of
  17. | choice installed on your machine before you begin development.
  18. |
  19. */
  20.  
  21. 'connections' => [
  22.  
  23. 'mysql' => [
  24. 'driver' => 'mysql',
  25. 'host' => 'localhost',
  26. 'database' => 'homestead',
  27. 'username' => 'homestead',
  28. 'password' => 'secret',
  29. 'charset' => 'utf8',
  30. 'collation' => 'utf8_unicode_ci',
  31. 'prefix' => '',
  32. ],
  33.  
  34. 'pgsql' => [
  35. 'driver' => 'pgsql',
  36. 'host' => 'localhost',
  37. 'database' => 'homestead',
  38. 'username' => 'homestead',
  39. 'password' => 'secret',
  40. 'charset' => 'utf8',
  41. 'prefix' => '',
  42. 'schema' => 'public',
  43. ],
  44.  
  45. ],
  46.  
  47. ];
Add Comment
Please, Sign In to add comment