How would i add a data attribute to a laravel array?
For example, I want each of my options to look like this
<option value="1" data-days="182">6 Months</option>
<option value="2" data-days="365">1 Year</option>
How do I add the data attribute in the following select array?
Days Table
id | days | name
1 | 182 | 6 Months
2 | 365 | 1 Year
View
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire