public function attempt(AuthAttemptRequest $request) { $credentials = $request->only('username', 'password'); if ($this->authService->attempt($credentials, $request->has('remember'))) { return \Redirect::to('/'); } else { return \Redirect::back()->withErrors(array('warning' => 'ユーザ名又はパスワードが正しくありません'))->withInput(); } }