mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-20 15:09:38 +00:00
Improved some query efficiencies on user list
This commit is contained in:
parent
28c706fee3
commit
d0a7a8b890
4 changed files with 23 additions and 18 deletions
app/Http/Controllers
|
@ -41,6 +41,7 @@ class UserController extends Controller
|
|||
'sort' => $request->get('sort', 'name'),
|
||||
];
|
||||
$users = $this->userRepo->getAllUsersPaginatedAndSorted(20, $listDetails);
|
||||
|
||||
$this->setPageTitle(trans('settings.users'));
|
||||
$users->appends($listDetails);
|
||||
return view('users.index', ['users' => $users, 'listDetails' => $listDetails]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue