mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
Move the environment settings into their own file.
This commit is contained in:
parent
d2acaa24c2
commit
e5fe0aff57
18
bootstrap/environment.php
Normal file
18
bootstrap/environment.php
Normal 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'],
|
||||
|
||||
]);
|
@ -24,11 +24,7 @@ $app = new Illuminate\Foundation\Application;
|
||||
|
|
||||
*/
|
||||
|
||||
$env = $app->detectEnvironment(array(
|
||||
|
||||
'local' => array('homestead'),
|
||||
|
||||
));
|
||||
require __DIR__.'/environment.php';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user