folklore/laravel-mediatheque
Laravel Mediatheque is a media library package for Laravel that simplifies uploading, storing, and attaching files and images to Eloquent models. It provides a clean API for organizing media collections, handling storage disks, and serving assets, keeping media management consistent across your app.
med_…, med_…/{handle}, and med_…/{handle}/{index} routes for media image files.laravel-image 2 and a media package, use the built-in resolver instead of maintaining custom URL-generation endpoints.laravel-image 2 integration and resolver interoperability, including registration even when another provider registers resolvers first.Consider adoption when:
laravel-image 2 and stores images through the associated media model.v2.0.0-alpha.2) and tolerate pre-stable behavior.Look elsewhere when:
laravel-image 2 or the relevant media package.laravel-image or a CDN/image service.For executives: This release reduces custom engineering for media image URLs by integrating directly with laravel-image 2. It supports faster delivery of image-heavy features, improves cache safety through checksum-based versions, and handles private and deleted media more consistently. The main caveat is that this is an alpha release, so adoption should be scoped and validated before production rollout.
For engineering: The resolver auto-registers when laravel-image 2 is installed, even if another provider registers resolvers first. It maps media identifiers to image files, uses the first 8 checksum characters as a version token, resolves the file’s source as the disk, skips deleted media, and routes private media through private sources. Integration effort is low for teams already on the stack, but alpha stability and route-conflict behavior should be tested.
How can I help you explore Laravel packages today?