vendredi 4 septembre 2020

Validate dynamic radio button in laravel

I'm generating dynamic fields on view it can be any type of field

@foreach($inputfields as $fields)
@if($fields==1)
                      
@else
..
.. other fields

@endif
@endforeach

Issue is if i do not check the radio button then i am not able to get the value in the controller, but i want it in controller because i want to validate the fields in the controller and show respective validation error if fields not selected.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire