|
@@ -30,7 +30,7 @@ class AssetController extends Controller
|
|
|
$fullAsset= array_merge($parentAssets,$fullAsset);
|
|
|
}
|
|
|
|
|
|
- $resultAssets = Asset::whereIn('id', $fullAsset)->get(['id','parent_id','path','code'])->each(function ($asset) {
|
|
|
+ $resultAssets = Asset::whereIn('id', $fullAsset)->get()->each(function ($asset) {
|
|
|
$asset->requirement_total = $asset->total_requirements_count;
|
|
|
$asset->plan_total = $asset->total_plans_count;
|
|
|
});
|