Skip to content

Commit b350075

Browse files
author
Gareth Redfern
committed
reduce users paginated length to 10
1 parent 179c07e commit b350075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/UserController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class UserController extends Controller
1717
public function index()
1818
{
1919
if (Auth::user()->isAdmin()) {
20-
return UserResource::collection(User::paginate());
20+
return UserResource::collection(User::paginate(10));
2121
}
2222
return response()->json(["message" => "Forbidden"], 403);
2323
}

0 commit comments

Comments
 (0)