Changing default routing setup.

This commit is contained in:
Taylor Otwell
2014-11-02 10:02:20 -06:00
parent aa8bf8a211
commit 0ee0c434a3
6 changed files with 65 additions and 47 deletions

30
app/Http/routes.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
$router->get('/', 'HomeController@index');
/*
|--------------------------------------------------------------------------
| Authentication & Password Reset Controllers
|--------------------------------------------------------------------------
|
| These two controllers handle the authentication of the users of your
| application, as well as the functions necessary for resetting the
| passwords for your users. You may modify or remove these files
| if you wish. They just give you a convenient starting point.
|
*/
$router->controller('auth', 'AuthController');
$router->controller('password', 'PasswordController');