Skip to content

Commit c07f552

Browse files
committed
cleaning up comments for my ocd.
1 parent 4528981 commit c07f552

File tree

2 files changed

+25
-22
lines changed

2 files changed

+25
-22
lines changed

bootstrap/paths.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,22 @@
2020
| Public Path
2121
|--------------------------------------------------------------------------
2222
|
23-
| We understand that not all hosting environments allow flexibility with
24-
| public paths. That's why we allow you to change where your public path
25-
| is below.
23+
| The public path contains the assets for your web application, such as
24+
| your JavaScript and CSS files, and also contains the primary entry
25+
| point for web requests into these applications from the outside.
2626
|
2727
*/
2828

2929
'public' => __DIR__.'/../public',
3030

3131
/*
32-
|-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
33-
| Base Path
34-
|-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
32+
|--------------------------------------------------------------------------
33+
| Public Path
34+
|--------------------------------------------------------------------------
3535
|
36-
| You probably shouldn't be editing this.
36+
| The base path is the root of the Laravel installation. Most likely you
37+
| will not need to change this value. But, if for some wild reason it
38+
| is necessary you will do so here, just proceed with some caution.
3739
|
3840
*/
3941

bootstrap/start.php

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,38 +15,39 @@
1515

1616
/*
1717
|--------------------------------------------------------------------------
18-
| Bind Paths
18+
| Detect The Application Environment
1919
|--------------------------------------------------------------------------
2020
|
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.
2324
|
2425
*/
2526

26-
$paths = require __DIR__.'/paths.php';
27-
28-
$app->instance('path', $appPath = $paths['app']);
27+
$env = $app->detectEnvironment(array(
2928

30-
$app->instance('path.base', $paths['base']);
29+
'local' => array('your-machine-name'),
3130

32-
$app->instance('path.public', $paths['public']);
31+
));
3332

3433
/*
3534
|--------------------------------------------------------------------------
36-
| Detect The Application Environment
35+
| Bind Paths
3736
|--------------------------------------------------------------------------
3837
|
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.
4241
|
4342
*/
4443

45-
$env = $app->detectEnvironment(array(
44+
$paths = require __DIR__.'/paths.php';
4645

47-
'local' => array('your-machine-name'),
46+
$app->instance('path', $appPath = $paths['app']);
4847

49-
));
48+
$app->instance('path.base', $paths['base']);
49+
50+
$app->instance('path.public', $paths['public']);
5051

5152
/*
5253
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)