Inheritance: extends Owl\Http\Requests\Request
Esempio n. 1
0
 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();
     }
 }