public function store(Request $request)
    {
        try {
            $this->dispatch(new AttemptUserLogin($request->get('email'), $request->get('password'), $request->get('remember')));
            return redirect()->intended($this->config->get('authentication.login.redirectUri'));
        } catch (LoginFailed $e) {
            return redirect()->back()->withInput()->withErrors([
                'authentication::login_error' => $e->getMessage()
            ]);
        } catch (UserIsBanned $e) {
            return redirect()->back()->withInput()->withErrors([
                'authentication::login_error' => $e->getMessage()
            ]);
        }
    }
public function store(Request $request)
    {
        try {
            $this->dispatch(new AttemptUserLogin($request->get('email'), $request->get('password'), $request->get('remember')));
            return redirect()->intended($this->config->get('authentication.login.redirectUri'));
        } catch (LoginFailed $e) {
            return redirect()->back()->withInput()->withErrors([
                'authentication::login_error' => $e->getMessage()
            ]);
        } catch (UserIsBanned $e) {
            return redirect()->back()->withInput()->withErrors([
                'authentication::login_error' => $e->getMessage()
            ]);
        }
    }
public function store ( Request $ request ) { try { $ this -> dispatch ( new AttemptUserLogin ( $ request -> get ( 'email' ) , $ request -> get ( 'password' ) , $ request -> get ( 'remember' ) ) ) ; return redirect ( ) -> intended ( $ this -> config -> get ( 'authentication.login.redirectUri' ) ) ; } catch ( LoginFailed $ e ) { return redirect ( ) -> back ( ) -> withInput ( ) -> withErrors ( [ 'authentication::login_error' => $ e -> getMessage ( ) ] ) ; } catch ( UserIsBanned $ e ) { return redirect ( ) -> back ( ) -> withInput ( ) -> withErrors ( [ 'authentication::login_error' => $ e -> getMessage ( ) ] ) ; } }
Attempts to login the user.

@param Request $request
@return RedirectResponse
Attempts to login the user .