Skip to content

Commit 56f57cc

Browse files
authored
refactor: handle name in pagination (#641)
1 parent 23c1cf6 commit 56f57cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/UserInterface/Http/Livewire/Concerns/HasPagination.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ public function resolvePage()
2323
return (int) request()->query('page', $this->getPage());
2424
}
2525

26-
public function gotoPage(int $page, bool $emitEvent = true): void
26+
public function gotoPage(int $page, bool $emitEvent = true, string $name = 'page'): void
2727
{
2828
if ($emitEvent) {
2929
$this->dispatch('pageChanged');
3030
}
3131

32-
$this->setPage($page);
32+
$this->setPage($page, $name);
3333
}
3434
}

0 commit comments

Comments
 (0)