expectsJson()) { return shop_route('login.index'); } } /** * Handle an unauthenticated user. * * @param Request $request * @param array $guards * @return void * * @throws AuthenticationException */ protected function unauthenticated($request, array $guards) { throw new AuthenticationException( trans('common.unauthenticated'), $guards, $this->redirectTo($request) ); } }