mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
Eager loading for requestable assets account page
This commit is contained in:
parent
7d2ea36997
commit
2d5a0deb31
|
@ -58,7 +58,7 @@ class ViewAssetsController extends Controller
|
||||||
public function getRequestableIndex()
|
public function getRequestableIndex()
|
||||||
{
|
{
|
||||||
|
|
||||||
$assets = Asset::with('model', 'defaultLoc')->Hardware()->RequestableAssets()->get();
|
$assets = Asset::with('model', 'defaultLoc', 'assetloc','assigneduser')->Hardware()->RequestableAssets()->get();
|
||||||
|
|
||||||
return View::make('account/requestable-assets', compact('user', 'assets'));
|
return View::make('account/requestable-assets', compact('user', 'assets'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue