- changed limits for displayed items

This commit is contained in:
2022-06-15 09:04:50 +02:00
parent 9147b859d3
commit 3435a45952
3 changed files with 10 additions and 4 deletions

View File

@@ -19,6 +19,8 @@ use Toby\Infrastructure\Http\Resources\UserResource;
class UserController extends Controller
{
const LIMIT_PER_PAGE = 50;
/**
* @throws AuthorizationException
*/
@@ -31,7 +33,7 @@ class UserController extends Controller
->search($request->query("search"))
->orderByProfileField("last_name")
->orderByProfileField("first_name")
->paginate()
->paginate(self::LIMIT_PER_PAGE)
->withQueryString();
return inertia("Users/Index", [