Created
September 29, 2015 02:23
-
-
Save jackfruh/05f4087b38dc984292aa to your computer and use it in GitHub Desktop.
Revisions
-
jackfruh created this gist
Sep 29, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ 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); } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ <div class="form-group"> {!! Form::label('event_id', 'event_id') !!} <br/> {!! Form::select('event_id',$events) !!} </div>