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.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/33KH0ue
via IFTTT
Aucun commentaire:
Enregistrer un commentaire