- Added
Mediable::lastMedia()
convenience method (Thanks @pet1330!)
- Added Laravel 5.5 package autodiscovery
- Fixed bugs due to method renamed in Laravel 5.5
- Added missing use statements.
- Fixed composer notation use.
- Added fallback extension guesser to various SourceAdapters for cases where file path does not include extension (e.g. tmp files).
- Fixed allowed extension checking failing due to case mismatch
- Restored Laravel 5.2 compatibility
S3UrlGenerator
now generates the url directly with S3 client, instead of with theFilesystemAdapter::url()
method, which was only added in Laravel 5.2.15- Added fallback for
wherePivotIn()
used in eager loading, which was only added in Laravel 5.3
- Fixed issues cause by Laravel 5.4 backwards-compatibility breaks
- Increased laravel minumum version to 5.3, which is the minimum that works with the current implementation. Will attempt to restore support for older versions in an upcoming release.
- The
onDuplicateDelete
action of theMediaUploader
now manually deletes theMedia
record and the file on disk, instead of depending on the record existing to clean its own file.
- Added support for raw content strings to
MediaUploader
(Thanks @sebdesign) - Added support for stream resources to
MediaUploader
(Thanks @sebdesign) - Added support for PSR-7 StreamInterface objects to
MediaUploader
(Thanks @sebdesign) - All SourceAdapters now properly adhere to the described interface.
- Refactored test suite for speed.
- Separated MediaUploadException into a number of subclasses for more granular exception handling (Thanks @sebdesign!).
- Added HandlesMediaUploadExceptions trait for converting MediaUploadExceptions into HttpException with appropriate error codes (Thanks @sebdesign).
- Fixed SQL escaping issue in
Mediable::getOrderValueForTags
.
- Fixed
Media::scopeForPathOnDisk
not working when path does not contain a directory (Thanks @geidelguerra!).
- Fixed typo in
MediaUploader
'sOnDuplicateError
behaviour (Thanks @geidelguerra!).
- Added handling for symlinked local disks.
- fixed minor issue where variable could be undefined.
- Added means of removing order by from media relation query.
- Fixed multiple media passed to
attachMedia()
orsyncMedia()
receiving the same order value. - Fixed issue with ONLY_FULL_GROUP_BY (MySQL 5.6.5+).
- Reworked
attachMedia()
to optimize the number of executed queries.
Mediable
models now remember the order in whichMedia
is attached to each tag.- Renamed a few
MediaUploader
methods. - Facilitated setting
MediaUploader
on-duplicate behaviour. Thanks @jdhmtl. MediaUploader
can now generate filenames using hash of file contents (Thanks @geidelguerra!).- Added
import()
andupdate()
methods toMediaUploader
.
- Published migration file now uses dynamic timestamp (Thanks @borisdamevin!).
- Added behaviour for detaching mediable relationships when Media or Mediable models are deleted or soft deleted.
- Fixed
Mediable
relationship not connecting to customMedia
subclass defined in config.
- Added match-all case to media eager load helpers.
Mediable::getTagsForMedia()
now properly rehydrates media if necessary.Mediable::load()
now looks for media that is either the $relationship key or value.
- Added MediaCollection class.
- Added media eager loading helpers to query builder,
Mediable
, and MediaCollection.
- Added object typehints to all appropriate functions and closures.