Eager load userloc

This commit is contained in:
snipe 2017-11-02 11:06:15 -07:00
parent e08911ab8f
commit f095f1807c

View file

@ -53,7 +53,7 @@ class UsersController extends Controller
'users.activated',
'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');
$users = Company::scopeCompanyables($users);