mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 05:47:28 -08:00
Eager load userloc
This commit is contained in:
parent
e08911ab8f
commit
f095f1807c
|
@ -53,7 +53,7 @@ class UsersController extends Controller
|
||||||
'users.activated',
|
'users.activated',
|
||||||
'users.avatar',
|
'users.avatar',
|
||||||
|
|
||||||
])->with('manager', 'groups', 'userloc', 'company', 'department','throttle','assets','licenses','accessories','consumables')
|
])->with('manager', 'groups', 'userloc', 'company', 'department','assets','licenses','accessories','consumables')
|
||||||
->withCount('assets','licenses','accessories','consumables');
|
->withCount('assets','licenses','accessories','consumables');
|
||||||
$users = Company::scopeCompanyables($users);
|
$users = Company::scopeCompanyables($users);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue