Laravel – Validation rules with dynamic file inputs
My form allows users to add fields to upload a file dynamically. <input type="file" name="your_file_{{ $i }}" id="your_file_{{ $i }}"> So it generates input names like: your_file_1, your_file_2, ... Now I want to make these fields mandatory through validation rules,…