More eager loading

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-03 23:18:37 +01:00
parent 9f1e59cf78
commit 59f66051f8

View file

@ -42,7 +42,7 @@ class BulkUsersController extends Controller
// Get the list of affected users
$user_raw_array = request('ids');
$users = User::whereIn('id', $user_raw_array)
->with('groups', 'assets', 'licenses', 'accessories')->get();
->with('assets', 'manager', 'userlog', 'licenses', 'consumables', 'accessories', 'managedLocations','uploads', 'acceptances')->get();
// bulk edit, display the bulk edit form
if ($request->input('bulk_actions') == 'edit') {