I have a form with two sections A & B.
A has following fields. name,result
B has following fields. name1,result1
No i want to make sure that user fills at least one section to continue.
This is what i am trying to do.
$this->validate($request, [
'name' => 'required',
'result' => 'required',
'name1' => 'required',
'result1' => 'required'
]);
This validates both sections fields,but i want at least validate one section.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2wcRmU1
via IFTTT
Aucun commentaire:
Enregistrer un commentaire