Eager loading assignedTo - I have no idea why this works

This commit is contained in:
snipe
2017-10-28 03:50:02 -07:00
parent 890012f6c4
commit 5278dac2b0
2 changed files with 11 additions and 11 deletions
@@ -85,7 +85,7 @@ class AssetsController extends Controller
}
$assets = Company::scopeCompanyables(Asset::select('assets.*'))->with(
'location', 'assetstatus', 'assetlog', 'company', 'defaultLoc',
'location', 'assetstatus', 'assetlog', 'company', 'defaultLoc','assignedTo',
'model.category', 'model.manufacturer', 'model.fieldset','supplier');