astrotomic/laravel-fileable
Attach files to any Eloquent model with a polymorphic, configurable file system for Laravel. Upload, store, and associate single or multiple files, manage storage disks, and keep file handling cleanly separated from your models.
HasFiles trait plus a File model and relation) that would otherwise be hand-rolled in every project that needs attachments. For a team shipping attachments on 2+ models, adopting it removes roughly a sprint's worth of plumbing and its ongoing maintenance.files-table storage shape. That decision affects later reporting, storage-cost modeling, and any future media-library migration, so it's worth an explicit, documented choice rather than a per-developer default.Astrotomic\Fileable\Concerns\Fileable to Astrotomic\Fileable\Concerns\HasFiles. This is a breaking change shipped on a minor version bump (0.2 → 0.3). Two PM-relevant consequences:
use statement and trait reference, plus any instanceof/reflection use. Small, but it touches every model that uses the trait and must be coordinated with a deploy."astrotomic/laravel-fileable": "0.3.*" or a lockfile), and budget upgrade work in any plan that spans multiple quarters.HasFiles trait and polymorphic File relation — no custom storage abstraction to own. 0.3.0 renames the trait from Fileable to HasFiles; migration is a find/replace plus a lockfile bump. Pin the exact version and treat upgrades as scheduled work, not automatic.How can I help you explore Laravel packages today?