Handy Laravel select helpers for ranges, years and months
This blog post was originally published a little while ago. Please consider that it may no longer be relevant or even accurate.
Came across some groovy form helpers in Laravel that aren’t currently documented (though I have made a pull request) which are actually pretty handy.
Select list with a range
echo Form::selectRange('number', 10, 20);
Select list with a year range
echo Form::selectYear('year', 1900, 2000);
Select list with month names
echo Form::selectMonth('month');