@@ -2,15 +2,15 @@ |
||
| 2 | 2 | return [ |
| 3 | 3 | 'databases'=>[ |
| 4 | 4 | 'db' => [ |
| 5 | - 'driver' => $env(__APP_ROOT__,'DB_DRIVER', 'mysql'), |
|
| 6 | - 'host' => $env(__APP_ROOT__,'DB_HOST', 'localhost'), |
|
| 7 | - 'database' => $env(__APP_ROOT__,'DB_NAME', 'cafesaba'), |
|
| 8 | - 'username' => $env(__APP_ROOT__,'DB_USERNAME', 'root'), |
|
| 9 | - 'password' => $env(__APP_ROOT__,'DB_PASS', ''), |
|
| 10 | - 'charset' => $env(__APP_ROOT__,'DB_CHARSET', 'utf8'), |
|
| 11 | - 'collation' => $env(__APP_ROOT__,'DB_COLLATION', 'utf8_unicode_ci'), |
|
| 12 | - 'prefix' => $env(__APP_ROOT__,'DB_PREFIX', ''), |
|
| 13 | - 'port' => $env(__APP_ROOT__,'DB_PORT', 3306), |
|
| 5 | + 'driver' => $env(__APP_ROOT__, 'DB_DRIVER', 'mysql'), |
|
| 6 | + 'host' => $env(__APP_ROOT__, 'DB_HOST', 'localhost'), |
|
| 7 | + 'database' => $env(__APP_ROOT__, 'DB_NAME', 'cafesaba'), |
|
| 8 | + 'username' => $env(__APP_ROOT__, 'DB_USERNAME', 'root'), |
|
| 9 | + 'password' => $env(__APP_ROOT__, 'DB_PASS', ''), |
|
| 10 | + 'charset' => $env(__APP_ROOT__, 'DB_CHARSET', 'utf8'), |
|
| 11 | + 'collation' => $env(__APP_ROOT__, 'DB_COLLATION', 'utf8_unicode_ci'), |
|
| 12 | + 'prefix' => $env(__APP_ROOT__, 'DB_PREFIX', ''), |
|
| 13 | + 'port' => $env(__APP_ROOT__, 'DB_PORT', 3306), |
|
| 14 | 14 | ], |
| 15 | 15 | ] |
| 16 | 16 | ]; |
| 17 | 17 | \ No newline at end of file |
@@ -6,12 +6,12 @@ |
||
| 6 | 6 | use Illuminate\Database\Capsule\Manager as Capsule; |
| 7 | 7 | $env = new \Core\Helpers\Env(); |
| 8 | 8 | $config = include 'databases.php'; |
| 9 | -$capsule = new Capsule; |
|
| 9 | +$capsule = new Capsule; |
|
| 10 | 10 | $capsule->addConnection($config['databases']['db']); |
| 11 | 11 | $capsule->setAsGlobal(); |
| 12 | 12 | $capsule->bootEloquent(); |
| 13 | 13 | $container = new ArrayObject(); |
| 14 | 14 | $container['phpmig.adapter'] = new Adapter\Illuminate\Database($capsule, 'migrations'); |
| 15 | -$container['phpmig.migrations_path'] = 'database/migrations'; |
|
| 15 | +$container['phpmig.migrations_path'] = 'database/migrations'; |
|
| 16 | 16 | $container['phpmig.migrations_template_path'] = 'core/resources/templates/create_migration.txt'; |
| 17 | 17 | return $container; |
| 18 | 18 | \ No newline at end of file |