Laravel request unknown number of validate parameters
I have 3 parameters that I send through request body.
At least one of them is necessary, others are optional, but it could be all 3 that would be send.
How should I validate this data? sometimes
rule helps with optional parameters but how do I define that at least 1 is required?
from Laravel Questions and Answers https://laravelquestions.com/laravel/laravel-request-unknown-number-of-validate-parameters/
via Lzo Media
No comments:
Post a Comment