I have a project which requires a step-program. Which means that a user needs to follow a collection of routes in order. Say, for instance, there are 5 steps. the routes for those steps are
www.example.com/step2 etc. The user must fill in the form on
www.exmaple.com/step1 before being able to access
www.example.com/step2. If the user did not fill in the form on step1. he/she can't access step 2, 3, 4 or 5 either. They must follow the routes in order of 1, 2, 3, 4, 5. How can I make this work? I figured I had to use something like middleware? I honestly have no clue where to look. Tips are appreciated
Thanks in advance!