I'm creating a country dropdown menu, usually you set the data in the database and call it into the controller and view to get the results as following.
<select name="country" class="form-control">
<option value=""></option>
@foreach ($countries as $country)
<option value=""></option>
@endforeach
</select>
My question: How to populate dropdown menu values from language resources
without Database
. Like defining the values in a file in resources
folder and call them successfully into view
based on language used.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire