feat(catalog): add is_enabled field to catalog item attachments

This commit is contained in:
2026-08-14 10:24:11 -03:00
parent 58c7a0f580
commit 7fbdc00c64
5 changed files with 28 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ class Variant extends Model
'variant_id',
'attachment_id'
)
->withPivot('orden')
->withPivot(['orden', 'is_enabled'])
->orderByPivot('orden');
if ($this->catalog_item_id !== null) {