[Vuejs]-Laravel 5.3 backend and Vue 2.0 form to create user

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:-

  1. 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.

  1. The Vue script need to process the response i.e. if success, redirect to somewhere or if failed, prompt a message.

Cheers!

Leave a comment