I have a concept for how to make a multiple page registration route on my Laravel app, but there is still one area that I can't find. When the user begins to register, the registration route is called. Inside of the register route, multiple views are linked to each other on if statements. For instance, if the user completes one view for the registration, then return the view for the next part of the registration process. The user will continue navigating the routes within the registration process until completed. What I'm trying to find is how to notify the program that the user has completed a view through submitting their information to the app database. Is their a function that allows this to be notified?
Here is a pseudo code format of the route and possible a controller function:
Route posting of register, (possible controller function)
if user completes first section
return next section view
if user completes second section
return next section view
if user completes third section
return next final view
if user completes final section
redirect to different route
end
end
If someone could answer this, I can type the functions and routes for this structure very quickly.