Eager load user location

This commit is contained in:
snipe 2017-11-02 10:56:36 -07:00
parent 27875c2dac
commit ca6dc5c2b5

View file

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