F
Filament12mo ago
Abi

Default Pagination for all tables

Is there a way to set the Pagination configuration for all the tables for the Table Builder on the Panel Provider?
2 Replies
awcodes
awcodes12mo ago
If this doesn't work, you'll have to do it in a service provider boot() method.
$panel->bootUsing(function ($panel) {
Table::configureUsing(function (Table $table) {
$table->paginated([10, 25, 50, 100, 'all']);
});
})
$panel->bootUsing(function ($panel) {
Table::configureUsing(function (Table $table) {
$table->paginated([10, 25, 50, 100, 'all']);
});
})
Abi
AbiOP12mo ago
thank you this worked. Appreciate the help
Want results from more Discord servers?
Add your server