Skip to content

Commit

Permalink
reduce users paginated length to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth Redfern committed Jan 16, 2021
1 parent 179c07e commit b350075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class UserController extends Controller
public function index()
{
if (Auth::user()->isAdmin()) {
return UserResource::collection(User::paginate());
return UserResource::collection(User::paginate(10));
}
return response()->json(["message" => "Forbidden"], 403);
}
Expand Down

0 comments on commit b350075

Please sign in to comment.