Skip to content

Commit 7cf3999

Browse files
committed
fluffing up the files.
1 parent a05a274 commit 7cf3999

2 files changed

Lines changed: 46 additions & 1 deletion

File tree

app/app.php

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,51 @@
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+
931
require __DIR__.'/bulbs/default.php';
1032

1133
if (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+
1649
require __DIR__.'/routes.php';
1750

1851
return $app;

app/routes.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
<?php
22

3+
/*
4+
|--------------------------------------------------------------------------
5+
| Application Routes
6+
|--------------------------------------------------------------------------
7+
|
8+
| Here is where you can register all of the routes for your application.
9+
| It's a breeze. Just tell Illuminate which URIs it should respond to
10+
| and give it a Closure to execute when that URI is accessed. It is
11+
| a walk in the park. Enjoy the simplicity of HTTP and routing.
12+
|
13+
*/
14+
315
$app->get('/', function() use ($app)
416
{
517
return 'Hello World!';

0 commit comments

Comments
 (0)