mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Eager load user location
This commit is contained in:
parent
27875c2dac
commit
ca6dc5c2b5
|
@ -53,7 +53,7 @@ class UsersController extends Controller
|
||||||
'users.activated',
|
'users.activated',
|
||||||
'users.avatar',
|
'users.avatar',
|
||||||
|
|
||||||
])->with('manager', 'groups', 'location', 'company', 'department','throttle','assets','licenses','accessories','consumables')
|
])->with('manager', 'groups', 'userloc', 'company', 'department','throttle','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