© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
Veur

Get the records of a Table (with filters applied)

Using the
InteractsWithPageTable
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;
}
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.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Custom Table Filter and Applied filters?
FilamentFFilament / ❓┊help
3y ago
Get table records
FilamentFFilament / ❓┊help
14mo ago
Show table records when "Apply filters" clicked
FilamentFFilament / ❓┊help
2y ago
Filters applied on load?
FilamentFFilament / ❓┊help
3y ago