F
Filament2mo ago
keiron

Globally set records per page for table listings

Hi, does anyone know if it's possible to globally set the number of items shown per table listing? Currently it defaults to 10. I found some references to default_records_per_page but have not be able to get it working, not sure it's possible. I want to globally change records per table to 100.
Solution:
Table::configureUsing(function (Table $table): void {
$table->defaultPaginationPageOption(50);
});
Table::configureUsing(function (Table $table): void {
$table->defaultPaginationPageOption(50);
});
...
Jump to solution
5 Replies
Solution
drabew
drabew2mo ago
Table::configureUsing(function (Table $table): void {
$table->defaultPaginationPageOption(50);
});
Table::configureUsing(function (Table $table): void {
$table->defaultPaginationPageOption(50);
});
keiron
keironOP2mo ago
Where does this go?
frame
frame2mo ago
App\Providers\Filament\AdminPanelProvider.php (or similar) inside the boot function
keiron
keironOP2mo ago
thanks

Did you find this page helpful?