feat(desfile): implement entry management with image handling and variant synchronization

This commit is contained in:
2026-08-14 11:24:17 -03:00
parent 7fbdc00c64
commit 21b0517e6c
10 changed files with 767 additions and 1 deletions

View File

@@ -133,6 +133,12 @@ class CatalogItem extends Model
/** @return BelongsToMany<Attachment, $this> */
public function attachments(): BelongsToMany
{
return $this->allAttachments()->wherePivot('is_enabled', true);
}
/** @return BelongsToMany<Attachment, $this> */
public function allAttachments(): BelongsToMany
{
return $this->belongsToMany(
Attachment::class,