I am using Laravel 5.
I wanted to redirect a user after a successful registration. I have tried these in my authcontroller but it doesn't work.
protected $loginPath = '/plan';
protected $redirectTo = '/plan';
protected $redirectAfterRegister = 'plan/';
These work on successful login though but not after registration.
I have also tried postRegister to render a view but using a postRegister method overrides the registration process and I don't want to do that. I just want to redirect the user to a page on successful registration.
Overriding the postRegister function like you mention should work, you would do this in your
AuthController:Or something like it. Copy it from the
AuthenticatesAndRegistersUsersthat is used in the top of yourAuthController, here you will find all the functionsFor this to work your
AuthControllershould use the 'AuthenticatesAndRegistersUsers' trait, which is there by default.More info about redirects in case you want to redirect to a named route: http://laravel.com/docs/5.0/responses#redirects