F
Filament2mo ago
Rojak

Date Range Filter Plugin Error

I'm trying the date range filter plugin on my report page (report plugin) but every time I try it always gives an error. here's the code
public function filterForm(Form $form): Form
{
return $form
->schema([
DateRangeFilter::make('created_at')
->label('Tanggal Penjualan')
->defaultToday(),
]);
}
public function filterForm(Form $form): Form
{
return $form
->schema([
DateRangeFilter::make('created_at')
->label('Tanggal Penjualan')
->defaultToday(),
]);
}
No description
1 Reply
Dennis Koch
Dennis Koch2mo ago
You can't put a Filter inside a Form. If you want to used a FilterForm you need to use Form components.
Want results from more Discord servers?
Add your server