Skip to content

Instantly share code, notes, and snippets.

@deleugpn
Created October 28, 2017 16:01
Show Gist options
  • Select an option

  • Save deleugpn/1c573d6c4f5d9c079e95d670aa6b763b to your computer and use it in GitHub Desktop.

Select an option

Save deleugpn/1c573d6c4f5d9c079e95d670aa6b763b to your computer and use it in GitHub Desktop.
<?php
return [
'default' => env('DB_CONNECTION', 'main'),
'connections' => [
'main' => [
'driver' => env('DB_DRIVER', 'mysql'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
'tenant' => [
'driver' => env('DB_DRIVER', 'mysql'),
'host' => '',
'port' => env('DB_PORT', '3306'),
'database' => '',
'username' => '',
'password' => '',
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
],
// ...
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment