Skip to content

Instantly share code, notes, and snippets.

@jackfruh
Created September 29, 2015 02:23
Show Gist options
  • Save jackfruh/05f4087b38dc984292aa to your computer and use it in GitHub Desktop.
Save jackfruh/05f4087b38dc984292aa to your computer and use it in GitHub Desktop.
public function create()
{
//note the 'lists' command and the two fields, the name to be displayed, and the key:
$events = Event::lists('event_name', 'id');
return view('admin.presentations.create')->with('events', $events);
}
<div class="form-group">
{!! Form::label('event_id', 'event_id') !!} <br/>
{!! Form::select('event_id',$events) !!}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment