F
Filament10mo 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;
}
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.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server