Load assigneruser relationship

This commit is contained in:
snipe 2017-01-13 22:17:20 -08:00
parent f642013774
commit 39b4725114

View file

@ -60,7 +60,7 @@ class AssetsController extends Controller
$assets = Company::scopeCompanyables(Asset::select('assets.*'))->with(
'assetLoc', 'assetstatus', 'defaultLoc', 'assetlog', 'company',
'model.category', 'model.manufacturer', 'model.fieldset');
'model.category', 'model.manufacturer', 'model.fieldset','assigneduser');
if ($request->has('search')) {
$assets->TextSearch($request->input('search'));