Skip to content

Commit d1741ca

Browse files
committed
Add withQueryString to pagination in perDetail and perKak methods for improved query consistency
1 parent 2e02c75 commit d1741ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Controllers/ArsipController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function perDetail($token)
2525
}
2626
return $query;
2727
})
28-
->orderBy('ordered')->paginate();
28+
->orderBy('ordered')->withQueryString()->paginate();
2929

3030
return view('arsip-per-detail', [
3131
'tahun' => $tahun,
@@ -49,7 +49,7 @@ public function perKak($token, $coa)
4949
->when($search, function ($query, $search) {
5050
return $query->where('rincian', 'like', '%'.$search.'%');
5151
})
52-
->whereIn('id', $kakIds)->paginate();
52+
->whereIn('id', $kakIds)->withQueryString()->paginate();
5353

5454
return view('arsip-per-kak', [
5555
'level' => 'KAK',

0 commit comments

Comments
 (0)