auth.php 397 B

1234567891011121314
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. Route::group( ['domain' => env('APP_HOST'), 'prefix' => 'admin'],function($router){
  4. $router->get('login', 'LoginController@showLoginForm')->name('login');
  5. $router->post('login', 'LoginController@login')->name('login'); // 登录
  6. $router->post('logout', 'LoginController@logout')->name('logout'); // 登出
  7. });