I have a field project which is required if account_name field doesn't have the value '0'.I want to validate this scenario in laravel eg if account_name = '0' -project_name field is not required if account_name = '1' - project_name field is required
$this->validate($request,[
'project_name'=>'required_without:account_name,0',
]);
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2zOqmvb
via IFTTT
Aucun commentaire:
Enregistrer un commentaire