public function postLogin(LoginRequest $request)
    {
        $inputs = $request->except('_token','rememberme');

        $rememberme = $request->get('rememberme');

        $attemp = Auth::attempt($inputs, !!$rememberme);

        if (!$attemp) {
            $request->session()->flash('error', trans('auth.failed'));
            return Redirect::back();
        }

        return Redirect::intended('/');

    }
public function postLogin(LoginRequest $request)
    {
        $inputs = $request->except('_token','rememberme');

        $rememberme = $request->get('rememberme');

        $attemp = Auth::attempt($inputs, !!$rememberme);

        if (!$attemp) {
            $request->session()->flash('error', trans('auth.failed'));
            return Redirect::back();
        }

        return Redirect::intended('/');

    }
public function postLogin ( LoginRequest $ request ) { $ inputs = $ request -> except ( '_token' , 'rememberme' ) ; $ rememberme = $ request -> get ( 'rememberme' ) ; $ attemp = Auth :: attempt ( $ inputs , ! ! $ rememberme ) ; if ( ! $ attemp ) { $ request -> session ( ) -> flash ( 'error' , trans ( 'auth.failed' ) ) ; return Redirect :: back ( ) ; } return Redirect :: intended ( '/' ) ; }
try to login the user

@return Response
try to login the user