| 1234567891011121314151617181920212223 |
- <?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.
- |
- */
- //Admin
- Route::group(['namespace'=>'Admin','middleware'=>['admin.login']],function() {
- // 主页
- Route::get('/', 'IndexController@index');
- });
- Route::get('/login', 'Admin\IndexController@login');
- Route::post('/login_post', 'Admin\IndexController@login_post');
|