Eager load userloc
This commit is contained in:
parent
e08911ab8f
commit
f095f1807c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue