mardi 25 février 2020

Laravel Validation Rule required_if

I am writing custom Requests for validation and authorization. I am not able to figure out how to write the validation rule for the form field image. Can anyone help me with the rule. I need something like

'product_image'=>'required_if:product_image_is_empty_in_table'

How do I achieve this?

Thanks.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2w5SehG
via IFTTT

Aucun commentaire:

Enregistrer un commentaire