1. [php]代码 <?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 controller to call when that uri is requested.
|
*/
route::get('/', 'welcomecontroller@index');
route::get('home', 'homecontroller@index');
route::post('/appconf', 'welcomecontroller@appconf');
route::get('/appconf', 'welcomecontroller@appconf');
route::get('law', 'welcomecontroller@law');
route::get('lawframe', 'welcomecontroller@lawframe');
route::controllers([
'auth' => 'auth\authcontroller',
'password' => 'auth\passwordcontroller',
]);
route::group(['prefix' => 'user', 'namespace' => 'user','middleware'=>'user'], function()
{
route::get('/', 'usercontroller@index');
route::post('/', 'usercontroller@index');
route::get('/edit/{id}', 'usercontroller@edit');
route::post('/edit/{id}', 'usercontroller@edit');
route::get('/update/{id}', 'usercontroller@update');
route::post('/update/{id}', 'usercontroller@update');
route::get('/history/{id}', 'usercontroller@history');
route::post('/history/{id}', 'usercontroller@history');
route::get('/wealthadd/{id}', 'usercontroller@wealthadd');
route::post('/wealthadd/{id}', 'usercontroller@wealthadd');
route::get('/dowealthadd/{id}', 'usercontroller@dowealthadd');
"app/http/routes.php" 154l, 5664c 1,1 顶端