for a dynamic form in which fields can be added and modified:
in form
<input name="gallery[1][title]">
<input name="gallery[1][text]">
.
.
.
<input name="gallery[n][title]">
<input name="gallery[n][text]">
in controller for validation:
'gallery.*.file' => 'nullable|image',
'gallery.*.title' => 'nullable|string',
in localization file:
I never know how many are going to be in the array.
'gallery.*.text' => 'text of gallery 1',
'gallery.*.title' => 'title of gallery 1',
how can I write it?
I want something like this in results:
title of gallery 1
.
.
.
title of gallery n