FilamentF
Filament2y ago
Veur

Get the records of a Table (with filters applied)

Using the
InteractsWithPageTable
trait I am able to retrieve any table query and get the list of records. But it does not have the filters & sorting applied. Anybody knows how to get the query including the filters (which are persisted in the session)?

use InteractsWithPageTable;

public function mount()
{
  dd($this->getPageTableQuery()->get());
}

protected function getTablePage(): string
{
  return UsersTable::class;
}


This dumps a list of all records of the table, instead of only the records that are visible in the table with the applied filters.
Was this page helpful?