Eager load fieldset default values in asset model endpoint

This commit is contained in:
Marcus Moore 2023-05-22 14:19:03 -07:00
parent 869d195b35
commit a6eeae6541
No known key found for this signature in database

View file

@ -63,7 +63,7 @@ class AssetModelsController extends Controller
'models.deleted_at',
'models.updated_at',
])
->with('category', 'depreciation', 'manufacturer', 'fieldset')
->with('category', 'depreciation', 'manufacturer', 'fieldset.fields.defaultValues')
->withCount('assets as assets_count');
if ($request->input('status')=='deleted') {