- transferred to models

This commit is contained in:
2022-06-15 09:25:25 +02:00
parent 3435a45952
commit 691491a0b0
6 changed files with 7 additions and 10 deletions

View File

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