spatie/laravel-medialibrary
Attach files to Eloquent models with an easy API. Upload from disk or request, store media across multiple filesystems (local/S3), and generate image/PDF conversions and manipulations using Laravel’s Filesystem.
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?