FilamentF
Filament14mo ago
jamesro

Custom page with table and filters

Hello,

I'm having an issue with my custom page where I use a table and table filters, for some reason the applied filters does not end up into my url

Here is how I use it:

```php

class Planning extends Page implements HasForms, HasTable
{
use InteractsWithTable;
use InteractsWithPageFilters;
use InteractsWithForms;

public static function table(Table $table): Table
{
return $table
->query(Planning::all())
->filters([
Filter::make('year')
->columns(2)
->form([
Select::make('year')
->label('Select year')
->options(
collect(range(date('Y'), date('Y') - 10))
->mapWithKeys(fn($year) => [$year => $year])
->toArray()
)
->searchable(),
])
}

the filters do get applied, but I don't see the active filters applied in my page url

Any help would be appriciated.

Thanks
Was this page helpful?