© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
7 replies
Adam Holmes

Option to set default table pagination

Hi,

I'm creating some tables that have plenty data in them. I have pagination enabled with the default options of
[5, 10, 25, 50, 'all']
[5, 10, 25, 50, 'all']
- I'd like to keep those options, but default the view to 25 rather than 10.

Looking at
CanPaginateRecords
CanPaginateRecords
I can see the below method, but it seems that we either show 10 rows if it's in the options array, otherwise we just use the first item. I could override the default options and change 10 to 9 or 11, but that doesn't feel right.

 public function getDefaultPaginationPageOption(): int | string | null
  {
      $option = $this->evaluate($this->defaultPaginationPageOption);

      if ($option) {
          return $option;
      }

      $options = $this->getPaginationPageOptions();

      if (in_array(10, $options)) {
          return 10;
      }

      return Arr::first($options);
  }
 public function getDefaultPaginationPageOption(): int | string | null
  {
      $option = $this->evaluate($this->defaultPaginationPageOption);

      if ($option) {
          return $option;
      }

      $options = $this->getPaginationPageOptions();

      if (in_array(10, $options)) {
          return 10;
      }

      return Arr::first($options);
  }


Is there a way that I can get round this? Or request it as a feature in a future release?

Cheers

Adam
Solution
check out https://filamentphp.com/docs/3.x/tables/advanced#customizing-the-default-pagination-page-option
Advanced - Table Builder - Filament
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

How do I set the pagination default on a relationship table
FilamentFFilament / ❓┊help
3y ago
Default pagination to "All"
FilamentFFilament / ❓┊help
3y ago
Set default dateTime() table display format
FilamentFFilament / ❓┊help
6mo ago
Pagination in select option
FilamentFFilament / ❓┊help
3y ago