spatie/laravel-medialibrary
Associate files with Eloquent models via a simple API: add uploads or local paths to media collections, store them on any Laravel filesystem, and generate image manipulations for images and PDFs. Ideal for managing media in Laravel apps.
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.23.8...11.23.9
keepOriginalImageFormat() encoding conversions as JPEG when the original file has an uppercase extension by @moemadeldin in https://github.com/spatie/laravel-medialibrary/pull/3964Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.23.7...11.23.8
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.23.4...11.23.5
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.23.3...11.23.4
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.23.2...11.23.3
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.23.1...11.23.2
..) segments from the zip_filename_prefix custom property so MediaStream can no longer emit ZIP archives with traversal entries (zip-slip defense-in-depth) #3947Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.22.1...11.23.0
speaking-page.png from the repo root, accidentally committed in a previous "wip" commit. Reduces the size of the package archive downloaded by Composer.Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.22.0...11.22.1
deferred() conversion option by @ziadoz in https://github.com/spatie/laravel-medialibrary/pull/3922Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.21.2...11.22.0
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.21.1...11.21.2
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.21.0...11.21.1
getAvailableTemporaryUrl method (#3919)Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.19.0...11.20.0
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.18.2...11.19.0
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.18.1...11.18.2
registerAllMediaConversions() — the ?Media $media = null parameter that was added to the HasMedia interface in v11.18.0 has been removed, as it broke userland code that overrides the method without the parameter. The PHPStan error is now handled via the baseline instead. Fixes #3915.Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.17.10...11.18.0
getAvailablePathRelativeToRoot() method by @adriaanzon in https://github.com/spatie/laravel-medialibrary/pull/3877This new method is similar to getAvailablePath() but calls getPathRelativeToRoot() instead of getPath(). This is useful when working with both local and cloud filesystem drivers, as getPath() returns an absolute path that cannot be passed to Storage::get().
Example usage:
Storage::disk($media->disk)->get(
$media->getAvailablePathRelativeToRoot(['conversion'])
)
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.17.9...11.17.10
This fix resolves an issue where getStream() was forcing directory-style paths, making it impossible to use custom PathGenerators with non-directory paths (like prefixes). The fix allows developers to use filename prefixes such as {basePath}-{fileName}.
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.17.8...11.17.9
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.17.7...11.17.8
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.17.6...11.17.7
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.17.5...11.17.6
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.17.4...11.17.5
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.17.3...11.17.4
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.17.2...11.17.3
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.17.1...11.17.2
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.17.0...11.17.1
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.14.0...11.17.0
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.15.0...11.16.0
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.14.0...11.15.0
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.13.0...11.14.0
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.12.9...11.13.0
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.12.8...11.12.9
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.12.7...11.12.8
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.12.6...11.12.7
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.12.5...11.12.6
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.12.4...11.12.5
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.12.3...11.12.4
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.12.2...11.12.3
Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.12.1...11.12.2
alt attribute to responsive image components by @A909M in https://github.com/spatie/laravel-medialibrary/pull/3765Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.12.0...11.12.1
How can I help you explore Laravel packages today?