emaia/laravel-mediaman
Laravel MediaMan is a UI-agnostic media manager for Laravel. Upload files via a fluent MediaUploader, organize them into virtual collections, attach media to any model through polymorphic associations, tag by channels, and run automatic image conversions.
MediaUploader::maxFileSize(int $bytes) and mediaman.max_file_size config (env MEDIAMAN_MAX_FILE_SIZE). 0 = unlimited.FileSizeExceeded exception thrown when upload exceeds the limit.MediaCollection::findByName() and Media::findByName() are now static methods (previously Eloquent scopes). Chained usage like
MediaCollection::with('media')->findByName('x') no longer works — use MediaCollection::findByName('x') (lazy-loads relations).WidthCalculator interface gained calculateWidthsFromBinary(string): Collection. Custom implementations must add this method.findByName('non-existent') now returns null instead of leaking a Builder (visible only when called from Media::fetchCollections).Media::fetchCollections / MediaCollection::fetchMedia no longer throw TypeError when a BaseCollection contains integer ids.HasMedia::syncMedia now uses bulk attach — N items = 1 INSERT instead of N.sys_get_temp_dir. Bytes are read once and reused.Full Changelog: https://github.com/emaia/laravel-mediaman/compare/v2.0.0...v2.1.0
How can I help you explore Laravel packages today?