Feb 13, 2019
0
Level 2
Resource Controller with multi-stage form or session
I have been listening to the Laravel Snippet podcast and Taylor describes to clean up code try and stick to the traditional resource controller methods - create, update etc.
How is this accomplished when you have a multi-stage form with a Session? I was thinking that you have a hidden form field to deduce which stage in the form you are in. Therefore the correct validation can be called by use of a switch statement in the create method and then store the valid data in the session.
Please or to participate in this conversation.