mercredi 15 novembre 2017

two validation for single field

I want to validate a field with two condition billable_option is required 1)if account_name!=0 required_unless:account_name,0 and 2) required_without:billable_option_yes I want want to combine this tw validation for single field in laravel

 $this->validate($request,[
 'billable_option' => 
 'required_unless:account_name,0|required_without:billable_option_yes',
],$messages);



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

Aucun commentaire:

Enregistrer un commentaire