<?php
/*
 本代码由 口号帮 创建
 创建时间 2019-05-08 16:22:09
 技术支持 口号帮 
 严禁反编译、逆向等任何形式的侵权行为，违者将追究法律责任
*/

namespace App\Http\Controllers\Admin;use Illuminate\Foundation\Auth\AuthenticatesUsers;use Illuminate\Http\Request;use App\Http\Controllers\Controller;use Illuminate\Support\Facades\Auth;class LoginController extends Controller{use AuthenticatesUsers;public function showLoginForm(){return view('admin.login_register.login');}public function username(){return 'username';}public function redirectTo(){return route('admin.home');}public function logout(Request $request){$this->guard()->logout();$request->session()->invalidate();return redirect(route('admin.login'));}protected function guard(){return Auth::guard();}}
?>