0👍
You would have to perform the redirection at the front end script after receiving the response from the controller method.
This is my thought as a possible solution for you:-
- The authentication can be done in the controller following the creation. The controller method then need to return a JSON response indicating success.
Note: Laravel 5.3 ships with pre-built authentication controllers. RegisterController handles user registration.
- The Vue script need to process the response i.e. if success, redirect to somewhere or if failed, prompt a message.
Cheers!
Source:stackexchange.com