Move the environment settings into their own file.

This commit is contained in:
Taylor Otwell 2014-06-23 21:22:55 -05:00
parent d2acaa24c2
commit e5fe0aff57
2 changed files with 19 additions and 5 deletions

18
bootstrap/environment.php Normal file
View File

@ -0,0 +1,18 @@
<?php
/*
|--------------------------------------------------------------------------
| Detect The Application Environment
|--------------------------------------------------------------------------
|
| Laravel takes a dead simple approach to your application environments
| so you can just specify a machine name for the host that matches a
| given environment, then we will automatically detect it for you.
|
*/
$env = $app->detectEnvironment([
'local' => ['homestead'],
]);

View File

@ -24,11 +24,7 @@ $app = new Illuminate\Foundation\Application;
|
*/
$env = $app->detectEnvironment(array(
'local' => array('homestead'),
));
require __DIR__.'/environment.php';
/*
|--------------------------------------------------------------------------