How can I create option in my blade view ?
This is in my controller
$user = DB::table('user')->whereIn('status_id',[1,2]) ->get();
In my view I want like this
<select name="myusers">
<option value="{{ user->id }}">{{$user->name}})</option>
<option value="{{ user->id }}">{{$user->name}})</option>
<option value="{{ user->id }}">{{$user->name}})</option>
<option value="{{ user->id }}">{{$user->name}})</option>
</select>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire