Last active
August 29, 2015 14:02
Revisions
-
burakerdem renamed this gist
Jun 18, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
burakerdem revised this gist
Jun 18, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains 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 @@ {{ Form::countrySelect('country') }} -
burakerdem created this gist
Jun 18, 2014 .There are no files selected for viewing
This file contains 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,7 @@ // Taken from http://chrishayes.ca/blog/code/laravel-4-dry-views-form-html-macros Form::macro('countrySelect', function($name, $selected = 0, $options = []) { $countries = [0 => 'Select Country'] + Country::remember(60)->get()->lists('name', 'id'); return Form::select($name, $countries, $selected, $options); });