In Laravel drop downs is there a way to have multiple values in the drop down value?
Normally you would write a command like this to get a name and your id for the select box.
Project::where('project_id', '=', Session::get('project_id'))->lists('project_name', 'id');
and it will make a drop down like this
<select>
<option value="13">12345</option>
<option value="16">14-100</option>
<option value="17">14-200</option>
<option value="31">987</option>
</select>
I want to know if I can some how have it display another value from the db in value like created_by, so it would look something like this.
<select class="form-control" name="project">
<option value="13">12345 Billy user</option>
<option value="16">14-100 Sally user</option>
<option value="17">14-200 Thomas user</option>
<option value="31">987 Lola user</option>
</select>
Is something like this possible?