I have two requests that validate forms:
- StoreProductRequest (validates a newly created product)
- StoreProductBuildRequest (validates the components within the product)
In the 'edit' view, this functionality is combined into one form.
What is the best way to run through both form requests when submitting this form? I would rather avoid creating a new request (StoreProductAndBuildRequest?) as this isn't very DRY.
Related, but I wonder if there's a cleaner / more Laravel way: How to merge two Request in Laravel
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1VjDBuw
via IFTTT
Aucun commentaire:
Enregistrer un commentaire