laravel-arcanist / arcanist

🧙‍♀️ Arcanist takes the pain out of building multi-step form wizards in Laravel.
https://laravel-arcanist.com
MIT License
403 stars 32 forks source link

How to validate an array of objects in wizard step #45

Closed AUAboi closed 2 years ago

AUAboi commented 2 years ago

I am not sure how should I go about validating my data that I am passing as array of objects to my field. I can't make those fields individually because fields are generated dynamically. It's in a questionairre format where I am sending questions from database to front end and sending array of responses with questions id back to Field::make('responses'). Any help will be appreciated

AUAboi commented 2 years ago

I solved it by using this pull request. So far its working perfectly and does the job well. https://github.com/laravel-arcanist/arcanist/pull/33.