Disable months

Hello, everyone I have this TextInput and I am using it as a month calendar
TextInput::make('fuel_month_from')
->requiredIf('fuel_consumption_type', 'monthly')

->reactive()
>label(__('app.resources.work_points.from'))
->type('month')
->visible(fn (Get $get) => $get('fuel_consumption_type') === 'monthly'),
TextInput::make('fuel_month_from')
->requiredIf('fuel_consumption_type', 'monthly')

->reactive()
>label(__('app.resources.work_points.from'))
->type('month')
->visible(fn (Get $get) => $get('fuel_consumption_type') === 'monthly'),
How can I disable all months from now until over 5 years?
1 Reply
MohamedSabil83
MohamedSabil838mo ago
Add ->minValue(now()->subYears(5)->format('Y-m'))
Want results from more Discord servers?
Add your server