|
@@ -15,38 +15,39 @@ $app = new Illuminate\Foundation\Application;
|
|
|
|
|
|
/*
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
|--------------------------------------------------------------------------
|
|
-| Bind Paths
|
|
|
|
|
|
+| Detect The Application Environment
|
|
|--------------------------------------------------------------------------
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
-| Here we are binding the paths configured in paths.php to the app. You
|
|
|
|
-| should not be changing these here but rather in paths.php.
|
|
|
|
|
|
+| Laravel takes a dead simple approach to your application environments
|
|
|
|
+| so you can just specify a machine name or HTTP host that matches a
|
|
|
|
+| given environment, then we will automatically detect it for you.
|
|
|
|
|
|
|
|
*/
|
|
*/
|
|
|
|
|
|
-$paths = require __DIR__.'/paths.php';
|
|
|
|
-
|
|
|
|
-$app->instance('path', $appPath = $paths['app']);
|
|
|
|
|
|
+$env = $app->detectEnvironment(array(
|
|
|
|
|
|
-$app->instance('path.base', $paths['base']);
|
|
|
|
|
|
+ 'local' => array('your-machine-name'),
|
|
|
|
|
|
-$app->instance('path.public', $paths['public']);
|
|
|
|
|
|
+));
|
|
|
|
|
|
/*
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
|--------------------------------------------------------------------------
|
|
-| Detect The Application Environment
|
|
|
|
|
|
+| Bind Paths
|
|
|--------------------------------------------------------------------------
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
-| Laravel takes a dead simple approach to your application environments
|
|
|
|
-| so you can just specify a machine name or HTTP host that matches a
|
|
|
|
-| given environment, then we will automatically detect it for you.
|
|
|
|
|
|
+| Here we are binding the paths configured in paths.php to the app. You
|
|
|
|
+| should not be changing these here. If you need to change these you
|
|
|
|
+| may do so within the paths.php file and they will be bound here.
|
|
|
|
|
|
|
|
*/
|
|
*/
|
|
|
|
|
|
-$env = $app->detectEnvironment(array(
|
|
|
|
|
|
+$paths = require __DIR__.'/paths.php';
|
|
|
|
|
|
- 'local' => array('your-machine-name'),
|
|
|
|
|
|
+$app->instance('path', $appPath = $paths['app']);
|
|
|
|
|
|
-));
|
|
|
|
|
|
+$app->instance('path.base', $paths['base']);
|
|
|
|
+
|
|
|
|
+$app->instance('path.public', $paths['public']);
|
|
|
|
|
|
/*
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
|--------------------------------------------------------------------------
|