Skip to content

Commit 707712a

Browse files
committed
Update pagination limit in daftarFile method to enhance performance
1 parent 6d366d3 commit 707712a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/ArsipController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function daftarFile($token, $kak)
6464
$tahun = ShareLink::where('token', $token)->first()->tahun;
6565
$path = $tahun.'/'.'arsip-dokumens'.'/'.$kak;
6666
$files = Storage::disk('arsip')->files($path);
67-
$perPage = 15;
67+
$perPage = 2;
6868
$page = request()->get('page', 1);
6969
$offset = ($page - 1) * $perPage;
7070
$data = array_slice($files, $offset, $perPage);

0 commit comments

Comments
 (0)