middleware('guest')->except('logout'); } /** * Get the guard to be used during authentication. * * @return \Illuminate\Contracts\Auth\StatefulGuard */ protected function guard() { return Auth::guard('backend'); } /** * Show the application's login form. * * @return \Illuminate\View\View */ public function showLoginForm() { return view('back.auth.login'); } /** * Where to redirect users after login. * @return string */ protected function redirectTo(): string { return \route('bo.dashboard'); } }