I'm working on a Laravel project using Filamentphp
My form has DatePicker and I'm unable to disable all Weekends days or disable all dates except the one I specify.
DatePicker::make('issue_start_date')
->required()
->reactive()
->weekStartsOnSunday()
->afterStateUpdated(function (callable $set, $state)
{
$month = date('M', strtotime($state));
$year = date('Y', strtotime($state));
($month == null || $year === null)
? $set('name', null)
: $set('name', $month . ' ' . $year);
})
->dehydrateStateUsing(function (callable $set, $state)
{
if ($state === null) $set('name', null);
}),
Appreciate if someone can help me to solve this problem