I am populating my select with the following.
@foreach(\App\Client::all() as $client)
<option>$client->name</option>
@endforeach
Is this ok or should I pass a variable from the controller? My instinct says yes, however I cannot think of a situation where this would not be fine except for code cleanliness or maybe speed?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2uup1L0
via IFTTT
Aucun commentaire:
Enregistrer un commentaire