fix: updated pagination for departaimant
This commit is contained in:
parent
8b2b14a56b
commit
5466f47669
1 changed files with 1 additions and 1 deletions
|
|
@ -226,7 +226,7 @@ class DepartaimantController extends Controller
|
|||
int $pageSize,
|
||||
int $page = 1
|
||||
): \Illuminate\Pagination\LengthAwarePaginator {
|
||||
return $this->paginator($results->forPage($page, $pageSize), $totalCount, $pageSize, $page, [
|
||||
return $this->paginator($results, $totalCount, $pageSize, $page, [
|
||||
'path' => Paginator::resolveCurrentPath(),
|
||||
'pageName' => 'page',
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue