Overview of Laravel-Mediable features
masterLaravel-Mediable is a package designed for uploading and attaching media files to Laravel models. Key capabilities include:
- Filesystem-driven approach: Configurable upload directories with varying accessibility levels. You can restrict uploads using MIME types, file extensions, or aggregate types (e.g., using
imageto cover JPEG, PNG, and GIF). - Polymorphic relationships: Uses many-to-many polymorphic relationships, allowing you to attach any number of media files to any number of models without modifying your existing database schema.
- Tagging system: Allows attaching media to models using tags to categorize their purpose, such as
thumbnail,featured image,gallery, ordownload. - Image manipulation: Integrated support for
intervention/imageto create media variants (e.g., different sizes or formats) for specific use cases.