File tree 4 files changed +56
-9
lines changed
4 files changed +56
-9
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ return array (
4
+
5
+ /*
6
+ |--------------------------------------------------------------------------
7
+ | Application Path
8
+ |--------------------------------------------------------------------------
9
+ |
10
+ | Here we just defined the path to the application directory. Most likely
11
+ | you will never need to change this value as the default setup should
12
+ | work perfectly fine for the vast majority of all our applications.
13
+ |
14
+ */
15
+
16
+ 'app ' => __DIR__ .'/../app ' ,
17
+
18
+ /*
19
+ |--------------------------------------------------------------------------
20
+ | Public Path
21
+ |--------------------------------------------------------------------------
22
+ |
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.
26
+ |
27
+ */
28
+
29
+ 'public ' => __DIR__ .'/../public ' ,
30
+
31
+ /*
32
+ |-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
33
+ | Base Path
34
+ |-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
35
+ |
36
+ | You probably shouldn't be editing this.
37
+ |
38
+ */
39
+
40
+ 'base ' => __DIR__ .'/.. ' ,
41
+
42
+ );
Original file line number Diff line number Diff line change 15
15
16
16
/*
17
17
|--------------------------------------------------------------------------
18
- | Define The Application Path
18
+ | Bind Paths
19
19
|--------------------------------------------------------------------------
20
20
|
21
- | Here we just defined the path to the application directory. Most likely
22
- | you will never need to change this value as the default setup should
23
- | work perfectly fine for the vast majority of all our applications.
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.
24
23
|
25
24
*/
26
25
27
- $ app -> instance ( ' path ' , $ appPath = __DIR__ .'/../app ' ) ;
26
+ $ paths = require __DIR__ .'/paths.php ' ;
28
27
29
- $ app ->instance ('path.base ' , __DIR__ .'/.. ' );
28
+ $ app ->instance ('path ' , $ appPath = $ paths ['app ' ]);
29
+
30
+ $ app ->instance ('path.base ' , $ paths ['base ' ]);
31
+
32
+ $ app ->instance ('path.public ' , $ paths ['public ' ]);
30
33
31
34
/*
32
35
|--------------------------------------------------------------------------
Original file line number Diff line number Diff line change 12
12
]
13
13
},
14
14
"minimum-stability" : " dev"
15
- }
15
+ }
Original file line number Diff line number Diff line change 4
4
5
5
$ uri = urldecode ($ uri );
6
6
7
- $ requested = __DIR__ .'/public ' .$ uri ;
7
+ $ paths = require __DIR__ .'/bootstrap/paths.php ' ;
8
+
9
+ $ requested = $ paths ['public ' ].$ uri ;
8
10
9
11
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
10
12
// built-in PHP web server. This provides a convenient way to test a Laravel
14
16
return false ;
15
17
}
16
18
17
- require_once ( __DIR__ . ' /public/ index.php ') ;
19
+ require_once $ paths [ ' public ' ]. ' / index.php ' ;
You can’t perform that action at this time.
0 commit comments