diff --git a/src/UserInterface/Http/Livewire/Concerns/HasPagination.php b/src/UserInterface/Http/Livewire/Concerns/HasPagination.php index 8a170da8..357ec94a 100644 --- a/src/UserInterface/Http/Livewire/Concerns/HasPagination.php +++ b/src/UserInterface/Http/Livewire/Concerns/HasPagination.php @@ -23,12 +23,12 @@ public function resolvePage() return (int) request()->query('page', $this->getPage()); } - public function gotoPage(int $page, bool $emitEvent = true): void + public function gotoPage(int $page, bool $emitEvent = true, string $name = 'page'): void { if ($emitEvent) { $this->dispatch('pageChanged'); } - $this->setPage($page); + $this->setPage($page, $name); } }