FutureWeb
1 year ago
83
14
Laravel

Redirecting back to intended laravel 5.5

Posted 1 year ago by FutureWeb

I am trying to redirect the user to intended after login so I have taken out the $redirectTo property from the LoginController which is generated by artisan make:auth and added this method:

    protected function redirectTo(){
    
        return redirect()->intended('/home');
    }

But it only ever redirects home ? any help would be great.

Please sign in or create an account to participate in this conversation.