11<?php
22
3+ /*
4+ |--------------------------------------------------------------------------
5+ | Detect The Application Environment
6+ |--------------------------------------------------------------------------
7+ |
8+ | Illuminate takes a dead simple approach to application environments.
9+ | Just specify the hosts that belong to a given environment, and we
10+ | will quickly detect and set the application environment for you.
11+ |
12+ */
13+
314$ app ->detectEnvironment (array (
415
5- 'local ' => array ('localhost ' , 'illuminate.app ' ),
16+ 'local ' => array ('localhost ' , '*.dev ' ),
617
718));
819
20+ /*
21+ |--------------------------------------------------------------------------
22+ | Load The Environment Bulb
23+ |--------------------------------------------------------------------------
24+ |
25+ | You may specify a "bulb" for each environment. The default bulb will be
26+ | included on every request and the environment bulb gives a chance to
27+ | customize the application such as tweaking the IoC bindings, etc.
28+ |
29+ */
30+
931require __DIR__ .'/bulbs/default.php ' ;
1032
1133if (file_exists ($ bulb = __DIR__ .'/bulbs/ ' .$ app ['env ' ].'.php ' ))
1234{
1335 require $ bulb ;
1436}
1537
38+ /*
39+ |--------------------------------------------------------------------------
40+ | Load The Application Routes
41+ |--------------------------------------------------------------------------
42+ |
43+ | The Application routes are kept separate from the application starting
44+ | just to keep the file a little cleaner. We'll go ahead and load in
45+ | all of the routes now and return the application to the caller.
46+ |
47+ */
48+
1649require __DIR__ .'/routes.php ' ;
1750
1851return $ app ;
0 commit comments