© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
1 reply
M.

Eror Cursor pagination

when i added this code
protected function paginateTableQuery(Builder $query): CursorPaginator
    {
        return $query->cursorPaginate(
            (int) (($this->getTableRecordsPerPage() === 'all')
                ? $query->count()
                : $this->getTableRecordsPerPage())
        );
    }
protected function paginateTableQuery(Builder $query): CursorPaginator
    {
        return $query->cursorPaginate(
            (int) (($this->getTableRecordsPerPage() === 'all')
                ? $query->count()
                : $this->getTableRecordsPerPage())
        );
    }


i want to use cursor paginantion,but when i added this code to listrecord i got this eror on page
array_flip(): Can only flip string and integer values, entry skipped
could this be caused by this code?
protected function getHeaderActions(): array
    {
        return [
            $this->getTeamHeaderActions(),
            Action::make('kanban')
                ->label('View as Board')
                ->icon('heroicon-o-view-columns')
                ->action(function (): void {
                    $this->setStartingViewMode($this->team->code_prefix, 'kanban');
                    $this->redirect(IssueBoard::getUrl(['team' => $this->team->code_prefix]));
                }),
        ];
    }
}
protected function getHeaderActions(): array
    {
        return [
            $this->getTeamHeaderActions(),
            Action::make('kanban')
                ->label('View as Board')
                ->icon('heroicon-o-view-columns')
                ->action(function (): void {
                    $this->setStartingViewMode($this->team->code_prefix, 'kanban');
                    $this->redirect(IssueBoard::getUrl(['team' => $this->team->code_prefix]));
                }),
        ];
    }
}

And i have this code on listrecord
Screenshot_2025-08-27_at_12.48.23.png
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

Pagination Cursor not working
FilamentFFilament / ❓┊help
6mo ago
Pagination Cursor not working in Filament Tables
FilamentFFilament / ❓┊help
6mo ago
Cursor Pagination Not Working with Filament Table Tabs
FilamentFFilament / ❓┊help
13mo ago
extra pagination?
FilamentFFilament / ❓┊help
2y ago