|
15 | 15 |
|
16 | 16 | /*
|
17 | 17 | |--------------------------------------------------------------------------
|
18 |
| -| Bind Paths |
| 18 | +| Detect The Application Environment |
19 | 19 | |--------------------------------------------------------------------------
|
20 | 20 | |
|
21 |
| -| Here we are binding the paths configured in paths.php to the app. You |
22 |
| -| should not be changing these here but rather in paths.php. |
| 21 | +| Laravel takes a dead simple approach to your application environments |
| 22 | +| so you can just specify a machine name or HTTP host that matches a |
| 23 | +| given environment, then we will automatically detect it for you. |
23 | 24 | |
|
24 | 25 | */
|
25 | 26 |
|
26 |
| -$paths = require __DIR__.'/paths.php'; |
27 |
| - |
28 |
| -$app->instance('path', $appPath = $paths['app']); |
| 27 | +$env = $app->detectEnvironment(array( |
29 | 28 |
|
30 |
| -$app->instance('path.base', $paths['base']); |
| 29 | + 'local' => array('your-machine-name'), |
31 | 30 |
|
32 |
| -$app->instance('path.public', $paths['public']); |
| 31 | +)); |
33 | 32 |
|
34 | 33 | /*
|
35 | 34 | |--------------------------------------------------------------------------
|
36 |
| -| Detect The Application Environment |
| 35 | +| Bind Paths |
37 | 36 | |--------------------------------------------------------------------------
|
38 | 37 | |
|
39 |
| -| Laravel takes a dead simple approach to your application environments |
40 |
| -| so you can just specify a machine name or HTTP host that matches a |
41 |
| -| given environment, then we will automatically detect it for you. |
| 38 | +| Here we are binding the paths configured in paths.php to the app. You |
| 39 | +| should not be changing these here. If you need to change these you |
| 40 | +| may do so within the paths.php file and they will be bound here. |
42 | 41 | |
|
43 | 42 | */
|
44 | 43 |
|
45 |
| -$env = $app->detectEnvironment(array( |
| 44 | +$paths = require __DIR__.'/paths.php'; |
46 | 45 |
|
47 |
| - 'local' => array('your-machine-name'), |
| 46 | +$app->instance('path', $appPath = $paths['app']); |
48 | 47 |
|
49 |
| -)); |
| 48 | +$app->instance('path.base', $paths['base']); |
| 49 | + |
| 50 | +$app->instance('path.public', $paths['public']); |
50 | 51 |
|
51 | 52 | /*
|
52 | 53 | |--------------------------------------------------------------------------
|
|
0 commit comments