public function authenticate()
    {

                $email = Input::get('email');
        $password = Input::get('password');
        $returnURL = Input::get('returnURL');

        
        if (Auth::attempt(['email' => $email, 'password' => $password])) {
            // Authentication passed...
            // return redirect()->intended('dashboard');
             return redirect($returnURL);
        }
    }
public function authenticate()
    {

                $email = Input::get('email');
        $password = Input::get('password');
        $returnURL = Input::get('returnURL');

        
        if (Auth::attempt(['email' => $email, 'password' => $password])) {
            // Authentication passed...
            // return redirect()->intended('dashboard');
             return redirect($returnURL);
        }
    }
public function authenticate ( ) { $ email = Input :: get ( 'email' ) ; $ password = Input :: get ( 'password' ) ; $ returnURL = Input :: get ( 'returnURL' ) ; if ( Auth :: attempt ( [ 'email' => $ email , 'password' => $ password ] ) ) { // Authentication passed... // return redirect()->intended('dashboard'); return redirect ( $ returnURL ) ; } }
Handle an authentication attempt.

@return Response
Handle an authentication attempt .