routes.php 662 B

1234567891011121314151617181920212223
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Application Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register all of the routes for an application.
  8. | It's a breeze. Simply tell Laravel the URIs it should respond to
  9. | and give it the controller to call when that URI is requested.
  10. |
  11. */
  12. //Admin
  13. Route::group(['namespace'=>'Admin','middleware'=>['admin.login']],function() {
  14. // 主页
  15. Route::get('/', 'IndexController@index');
  16. });
  17. Route::get('/login', 'Admin\IndexController@login');
  18. Route::post('/login_post', 'Admin\IndexController@login_post');