Releases: plank/laravel-mediable
Releases · plank/laravel-mediable
5.0.2
- Fixed additional bugs with the
MediableCollection::delete()
method
- optimized the execution speed of
MediableCollection::delete()
5.0.1
- fixed notices generated from collection offset access in
MediableCollection::delete()
5.0.0
- Added support for creating image variants using the intervention/image library. Variants can be created synchronously in the current process or asychronously as queued jobs. Media records keep track of variants created from them.
- Fixed Laravel 8+ migration squashing. Database migrations are now loaded from within the package instead of copied to the application's database/migration directory. See UPGRADING.md for steps to avoid conflicts.
- Directory and filename validation now only allows URL and filesystem safe ASCII characters (alphanumeric plus
.
, -
, _
, and /
for directories). Will automatically attempt to transliterate UTF-8 accented characters and ligatures into their ASCII equivalent, all other characters will be converted to hyphens.
- Added
Media::stream()
method to easily retrieve a PSR-7 compatible Stream.
- Added support for generating temporary URLs for files hosted on Amazon S3 buckets.
4.4.2
- Fixed a handful of bugs related to using a custom table name when using a custom media class
4.4.1
- Fixed Morph relation when subclassing Media (Thanks @GeoSot!)
4.4.0
- Added support for Laravel 8.0
- Dropping support for Laravel versions < 6.0
- Dropping support for PHP versions 7.2
4.3.2
- Fix composer version constraint of
league/flysystem
to allow minor version bumps
- Removed redundant index from the Media table database migration
4.3.1
Media::moveToDisk()
and Media::copyToDisk()
now correctly transfer file visibility to the new disk.
4.3.0
- Added
Media::moveToDisk()
and Media::copyToDisk()
methods.
4.2.3
- The Media::$size property is now cast as int, fixing a TypeError. (Thanks @boumanb!)
- Fixed RemoteUrlAdapter, StreamAdapter, and StreamResourceAdapter potentially returning an incorrect filename and/or extension if the query params of the URL contains certain characters.