mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Switched to loadMissing for performance
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
3b7ce0091c
commit
2f9582ee5c
|
@ -325,7 +325,7 @@ class AssetsController extends Controller
|
|||
* Include additional associated relationships
|
||||
*/
|
||||
if ($request->input('components')) {
|
||||
$assets->load(['components' => function ($query) {
|
||||
$assets->loadMissing(['components' => function ($query) {
|
||||
$query->orderBy('created_at', 'desc');
|
||||
}]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue