Selecting only a year
Does Filament's datepicker offer an option for only years being able to be selected?
Is this something that's better to do that with a different input type? My database column is a datatype of year(4).
My current solution is:
Solution:Jump to solution
I would do like this
Forms\Components\Select::make('year')->options(array_combine(range(2100, 1900), range(2100, 1900)))
3 Replies