mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Load assigneruser relationship
This commit is contained in:
parent
f642013774
commit
39b4725114
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue