Add validation dynamically from database

60 Views Asked by At

I want to set some validation from database in input tag.

Here i am trying to set validation in form , from database ,

This is how i have stored my validation values in database comma separated

enter image description here

I have tried to put validation like this but it is not working , how to keep these both validation here in input tag in laravel

This is my input tag

<input  type="{{$data->inputType}}" class="form-control" required id="customField[0][name]" value="{{$data->customInputName}}"
                      name="customField[0][name]"  placeholder="Pool Party" aria-label="Pool Party" {{$data->validation}}/>
0

There are 0 best solutions below