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.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire