F
Filament2mo ago
Mike.

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
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?