Skip to content

Latest commit

 

History

History
2636 lines (1421 loc) · 76.4 KB

CHANGELOG.md

File metadata and controls

2636 lines (1421 loc) · 76.4 KB

Changelog

All notable changes to laravel-medialibrary will be documented in this file

11.5.4 - 2024-06-04

What's Changed

  • Add missing return types by @stevebauman in #3622

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.5.3...11.5.4

11.5.3 - 2024-06-04

What's Changed

  • Update 'queue_name' configuration to use environment variable by @christeyerl in #3623

New Contributors

  • @christeyerl made their first contribution in #3623

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.5.2...11.5.3

11.5.2 - 2024-05-27

What's Changed

  • recreate BackedEnums when applying Manipulations by @tkempf in #3584
  • Unwanted deletion fixes by @inalto in #3619

New Contributors

  • @tkempf made their first contribution in #3584

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.5.1...11.5.2

11.5.1 - 2024-05-23

What's Changed

  • Do not limit the maximum execution time if the queue connection is "sync" by @VGirol in #3618

New Contributors

  • @VGirol made their first contribution in #3618

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.5.0...11.5.1

11.5.0 - 2024-05-16

What's Changed

  • Media Downloader Verify SSL Config Added by @webdevhayes in #3609

New Contributors

  • @webdevhayes made their first contribution in #3609

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.4.8...11.5.0

11.4.8 - 2024-05-06

What's Changed

  • Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0 by @dependabot in #3596
  • Remove temp/cache files by @patinthehat in #3595
  • Fix - Supported format from original file by @lguichard in #3592
  • Fix manipulations not applying to non default collections by @MrMeshok in #3589

New Contributors

  • @lguichard made their first contribution in #3592

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.4.7...11.4.8

11.4.7 - 2024-04-24

What's Changed

  • Update installation-setup.md by @jozeflambrecht in #3571
  • Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 by @dependabot in #3573
  • Update create_media_table.php.stub by @farishrf in #3578
  • docs: update to use Fit enum by @dfreerzf in #3585
  • Copy media with manipulations by @MrMeshok in #3590

New Contributors

  • @jozeflambrecht made their first contribution in #3571
  • @farishrf made their first contribution in #3578
  • @dfreerzf made their first contribution in #3585
  • @MrMeshok made their first contribution in #3590

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.4.6...11.4.7

11.4.6 - 2024-03-19

What's Changed

  • Update docs with correct tag for publishing package views by @patinthehat in #3569
  • Update media library pro docs with Vite examples by @timvandijck in #3570

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.4.5...11.4.6

11.4.5 - 2024-03-04

What's Changed

  • fixes responsive images wiped on some circumstances by @inalto in #3558

New Contributors

  • @inalto made their first contribution in #3558

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.4.4...11.4.5

11.4.4 - 2024-02-22

What's Changed

  • Fix handling of dots in conversion names for clean command by @sebastianpopp in #3551

New Contributors

  • @sebastianpopp made their first contribution in #3551

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.4.3...11.4.4

11.4.3 - 2024-02-20

What's Changed

  • FileAdder - Resolve media model from subject and reinforce HasMedia contract by @illambo in #3547

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.4.2...11.4.3

11.4.2 - 2024-02-20

What's Changed

  • Clarify that class is resolved using service container by @bram-pkg in #3548
  • Fix DivisionByZeroError in File::getHumanReadable() by @ziming in #3549

New Contributors

  • @bram-pkg made their first contribution in #3548

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.4.1...11.4.2

11.4.1 - 2024-02-17

What's Changed

  • Update defining-conversions.md by @misaf in #3544
  • Support for passing an array of styles as extra attributes by @misaf in #3542

New Contributors

  • @misaf made their first contribution in #3544

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.4.0...11.4.1

11.4.0 - 2024-02-17

What's Changed

  • Leave the ability to override media model in InteractsWithMedia trait by @illambo in #3543

New Contributors

  • @illambo made their first contribution in #3543

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.3.1...11.4.0

11.3.1 - 2024-02-16

What's Changed

  • Add Laravel 11 Support by @Jubeki in #3539
  • Refactored how download file name is determined within MediaStream by @chrispage1 in #3541
  • Refinement & Fix bugs by @TheXerr0r in #3540

New Contributors

  • @Jubeki made their first contribution in #3539
  • @TheXerr0r made their first contribution in #3540

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.3.0...11.3.1

11.3.0 - 2024-02-14

What's Changed

  • update docs to align with the latest changes in medialibrary-pro by @lukasleitsch in #3522
  • Support for passing an array of classes as extra attributes by @pascalbaljet in #3537

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.2.0...11.3.0

11.2.0 - 2024-01-29

What's Changed

  • Ability to use different width calculator per conversion using Responsive Images by @jhorie in #3520

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.1.2...11.2.0

11.1.2 - 2024-01-24

Updated docs.

11.1.1 - 2024-01-24

What's Changed

  • Disabled tiny placeholder generation when use_tiny_placeholder config is disabled by @jhorie in #3513

New Contributors

  • @jhorie made their first contribution in #3513

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.1.0...11.1.1

11.1.0 - 2024-01-22

What's Changed

  • Update preparing-your-model.md - manipulations class has been replaced with Fit enum by @bomshteyn in #3509
  • Adds the HttpFacadeDownloader by @peterfox in #3505

New Contributors

  • @bomshteyn made their first contribution in #3509

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.0.5...11.1.0

11.0.5 - 2024-01-11

What's Changed

  • New 'getDownloadFilename' method for extensibility by @chrispage1 in #3504

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.0.4...11.0.5

11.0.4 - 2024-01-05

What's Changed

  • Adjust installation documentation for publishing migrations and config files by @LuisLeguizamon in #3483
  • laravel-pint-action to major version by @erikn69 in #3484
  • Update defining-conversions.md by @emargareten in #3496
  • When streaming media, replace with feof/fread instead of fpassthru by @chrispage1 in #3501

New Contributors

  • @LuisLeguizamon made their first contribution in #3483
  • @emargareten made their first contribution in #3496
  • @chrispage1 made their first contribution in #3501

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.0.3...11.0.4

11.0.3 - 2023-12-24

What's Changed

  • [11.x] Add test to check that pdf conversions are correct by @kduma in #3477
  • update dependencies

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.0.2...11.0.3

11.0.2 - 2023-12-21

What's Changed

  • Bump aglipanci/laravel-pint-action from 0.1.0 to 2.3.0 by @dependabot in #3461
  • [v11] Remove ZipStream V2 support by @erikn69 in #3473
  • [v11] Fix phpstan errors by @erikn69 in #3472

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.0.1...11.0.2

11.0.1 - 2023-12-21

What's Changed

  • do not throw exceptions when trying to convert PDFs and SVGs using GD

New Contributors

  • @dardanmulaj made their first contribution in #3460

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/11.0.0...11.0.1

11.0.0 - 2023-12-14

What's Changed

  • Suggest the installation of svgo through snap on Ubuntu by @3ub41r in #3434
  • Update handling-uploads-with-vue.md by @AzadGh95 in #3449
  • Use image v3 by @freekmurze in #3451

New Contributors

  • @AzadGh95 made their first contribution in #3449

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.15.0...11.0.0

10.15.0 - 2023-11-03

What's Changed

  • Don't include soft deleted models as orphaned media by @patrickomeara in #3428

New Contributors

  • @patrickomeara made their first contribution in #3428

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.14.0...10.15.0

10.14.0 - 2023-10-25

What's Changed

  • Remove unnecessary directory creation by @grEvenX in #3397
  • Feature/new custom delete fix #3190 by @benjam-es in #3252
  • Delete orphaned media in clean command by @mbardelmeijer in #3419

New Contributors

  • @grEvenX made their first contribution in #3397

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.13.2...10.14.0

10.13.2 - 2023-10-09

What's Changed

  • Test against php 8.3 by @sergiy-petrov in #3402
  • Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in #3405

New Contributors

  • @sergiy-petrov made their first contribution in #3402

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.13.1...10.13.2

10.13.1 - 2023-10-09

What's Changed

  • Adding example to docs to pass translation keys from Vue I18n in (pro) components by @jeffreyvanhees in #3395
  • added HEIC support by @boryn in #3399

New Contributors

  • @boryn made their first contribution in #3399

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.13.0...10.13.1

10.13.0 - 2023-09-26

What's Changed

  • V3 docs by @freekmurze in #3382
  • Bump actions/checkout from 3 to 4 by @dependabot in #3374
  • Support drivers containing gcs or s3 in driver name by @LukeAbell in #3389

New Contributors

  • @LukeAbell made their first contribution in #3389

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.12.2...10.13.0

10.12.2 - 2023-09-05

What's Changed

  • Fix typos by @szepeviktor in #3360
  • Updated doc block for $media->model_id by @viirre in #3369
  • Use temporary folder of spatie/laravel-medialibrary for spatie/image as well by @korridor in #3368

New Contributors

  • @viirre made their first contribution in #3369
  • @korridor made their first contribution in #3368

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.12.1...10.12.2

10.12.1 - 2023-09-04

What's Changed

  • Adds FileAdder@setFileSize() by @cosmastech in #3357

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.12.0...10.12.1

10.12.0 - 2023-09-04

What's Changed

  • Impove PHPStan workflow by @szepeviktor in #3356
  • Make Filesystem@copyToMediaLibraryFromRemote() more extensible by @cosmastech in #3361

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.11.4...10.12.0

10.11.4 - 2023-08-25

What's Changed

  • PhpStan Workflow by @erikn69 in #3341
  • Fixed error when config is cached by @Roboroads in #3347

New Contributors

  • @Roboroads made their first contribution in #3347

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.11.3...10.11.4

10.11.2 - 2023-07-27

What's Changed

  • Handle null extensions and mimetypes with ImageGeneratorFactory by @cosmastech in #3326

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.11.1...10.11.2

10.11.1 - 2023-07-25

  • revert loading media introduced in #3319 (v10.10.2)

10.11.0 - 2023-07-24

What's Changed

  • added AVIF support by @0xb4lint in #3320

New Contributors

  • @0xb4lint made their first contribution in #3320

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.10.2...10.11.0

10.10.2 - 2023-07-24

What's Changed

  • Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in #3308
  • Always set the updated_at column when marking conversions are finalized by @cosmastech in #3316
  • New config option to restore default laravel model serialization behaviour by @BARNZ in #3210
  • Automatically set model relationship on media by @michaelbaril in #3319

New Contributors

  • @BARNZ made their first contribution in #3210
  • @michaelbaril made their first contribution in #3319

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.10.1...10.10.2

10.10.1 - 2023-06-29

What's Changed

  • [Docs] Fix typos in Pro docs by @drbyte in #3298
  • FIX create migration by @wamesro in #3299

New Contributors

  • @wamesro made their first contribution in #3299

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.10.0...10.10.1

10.10.0 - 2023-06-22

What's Changed

  • Fix typo in composer.json by @jeffreyvanhees in #3283
  • Fixed a typo in the docs for creating custom react components by @DylanDebo in #3290
  • feat: add support for * ( ANY ) media collection by @huzaifaarain in #3286

New Contributors

  • @jeffreyvanhees made their first contribution in #3283
  • @DylanDebo made their first contribution in #3290
  • @huzaifaarain made their first contribution in #3286

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.9.4...10.10.0

10.9.4 - 2023-06-06

What's Changed

  • Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1 by @dependabot in #3270
  • Bug/3279 class not found by @Nielsvanpach in #3281

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.9.3...10.9.4

10.9.3 - 2023-05-22

What's Changed

  • set return type for FileManipulator@generateResponsiveImages() by @cosmastech in #3266

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.9.2...10.9.3

10.9.2 - 2023-05-03

What's Changed

  • Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot in #3253
  • Fix InteractsWithMedia serialization by @cosmastech in #3258

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.9.1...10.9.2

10.9.1 - 2023-04-21

What's Changed

  • feat: add user agent to stream context in DefaultDownloader by @rolfvandekrol in #3248

New Contributors

  • @rolfvandekrol made their first contribution in #3248

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.9.0...10.9.1

10.9.0 - 2023-04-20

What's Changed

  • Support maennchen/zipstream-php v3 by @erikn69 in #3246

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.8.0...10.9.0

10.8.0 - 2023-04-17

What's Changed

  • Only offer publishing when running in console by @erikn69 in #3227
  • Add webp extension. Fix: files with webp doesn't process responsive images by @websitevirtuoso in #3242

New Contributors

  • @websitevirtuoso made their first contribution in #3242

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.7.16...10.8.0

10.7.16 - 2023-03-30

Allow any Laravel version up from 9.15

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.7.15...10.7.16

10.7.15 - 2023-03-29

  • revert changes of previous release because of issues report in #3224

10.7.12 - 2023-03-06

What's Changed

  • Fixed custom path generators for Media with morphed map relations by @aprokopenko in #3191

New Contributors

  • @aprokopenko made their first contribution in #3191

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.7.11...10.7.12

10.7.11 - 2023-02-17

What's Changed

  • Replace migration id with alias by @eimantaaas in #3165
  • Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in #3174
  • update config instructions for custom_path_generators by @lukas-pierce in #3187
  • Use MimeTypes guessMimeType for better and more extensible MimeType detection by @Orrison in #3188

New Contributors

  • @eimantaaas made their first contribution in #3165
  • @lukas-pierce made their first contribution in #3187

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.7.10...10.7.11

10.7.10 - 2023-01-19

  • improve output of command

10.7.9 - 2023-01-12

What's Changed

  • Laravel 10.x Support by @erikn69 in #3157

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.7.8...10.7.9

10.7.8 - 2023-01-05

What's Changed

  • Prevent implicit conversion from float to int in FileSizeOptimizedWidthCalculator by @QuentinGab in #3145

New Contributors

  • @QuentinGab made their first contribution in #3145

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.7.7...10.7.8

10.7.7 - 2023-01-05

What's Changed

  • Fix GitHub workflow status "test" badge by @stevebauman in #3144
  • Remove failed DB record even when using SoftDeletes by @Pilskalns in #3142

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.7.6...10.7.7

10.7.6 - 2023-01-04

What's Changed

  • Ability to use morphed map model with custom path generator by @petyots in #3143

New Contributors

  • @petyots made their first contribution in #3143

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.7.5...10.7.6

10.7.5 - 2022-12-30

What's Changed

  • Fix data corruption bug when storage disk becomes invalid by @Pilskalns in #3139

New Contributors

  • @Pilskalns made their first contribution in #3139

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.7.4...10.7.5

10.7.4 - 2022-12-06

What's Changed

  • Format workflow files by @patinthehat in #3115
  • Normalize composer.json by @patinthehat in #3114
  • Allow to clean orphaned media when the registerMediaConversionsUsingModelInstance property is set to true on the model by @tomcoonen in #3120

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.7.3...10.7.4

10.7.3 - 2022-11-27

What's Changed

  • Issue delete command once per unique directory by @alisaleem27 in #3109
  • Add Dependabot Automation by @patinthehat in #3111
  • Bump actions/checkout from 2 to 3 by @dependabot in #3112
  • Throw error if disk cannot be accessed by @Silver343 in #3067

New Contributors

  • @alisaleem27 made their first contribution in #3109
  • @dependabot made their first contribution in #3112
  • @Silver343 made their first contribution in #3067

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.7.2...10.7.3

10.7.2 - 2022-11-22

What's Changed

  • [Micro Optimization] Use slice instead of reverse->take by @Tofandel in #3098
  • Add Additional Filename Sanitization by @patinthehat in #3105

New Contributors

  • @patinthehat made their first contribution in #3105

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.7.1...10.7.2

10.7.1 - 2022-11-09

What's Changed

  • fix #3090 syncMediaPath incorrectly comparing paths by @SlyDave in #3092

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.7.0...10.7.1

9.12.4 - 2022-11-09

What's Changed

  • fix #3090 - branch v9 PHP 7.4 version of the fix by @SlyDave in #3091

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.12.3...9.12.4

10.7.0 - 2022-11-09

What's Changed

  • Added option to set custom queue connection by @rahulhaque in #3085

New Contributors

  • @rahulhaque made their first contribution in #3085

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.6.1...10.7.0

10.6.1 - 2022-11-04

What's Changed

  • docs: fix some typos by @ArnaudLier in #3075
  • Fix typo in property name in Media model by @pdziewa in #3082

New Contributors

  • @ArnaudLier made their first contribution in #3075
  • @pdziewa made their first contribution in #3082

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.6.0...10.6.1

10.6.0 - 2022-10-21

What's Changed

  • Hint to additional installation instructions by @driesvints in #3047
  • PHP 8.2 Build by @erikn69 in #3061
  • Add fallback path/url support for conversions by @mertasan in #3062

New Contributors

  • @mertasan made their first contribution in #3062

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.5.2...10.6.0

10.5.2 - 2022-09-30

What's Changed

  • Fix for audio only "video" files by @rcerljenko in #3046

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.5.1...10.5.2

10.5.1 - 2022-09-21

What's Changed

  • Allow the Github actions to run locally via act by @emielmolenaar in #3028
  • Never explicitly create directories on GCS, just as with S3 by @boboldehampsink in #3037

New Contributors

  • @boboldehampsink made their first contribution in #3037

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.5.0...10.5.1

10.5.0 - 2022-09-12

What's Changed

  • Use "request" where "response" is intended in docs by @euoia in #3027
  • Add getPathRelativeToRoot as a public method in the Media model by @emielmolenaar in #3026

New Contributors

  • @euoia made their first contribution in #3027

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.4.5...10.5.0

10.4.5 - 2022-09-02

What's Changed

  • Change the create method to use 'static' by @FabienLucini in #3021

New Contributors

  • @FabienLucini made their first contribution in #3021

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.4.4...10.4.5

10.4.4 - 2022-08-22

What's Changed

  • Adding a short vite description by @schonhoff in #3001
  • Add a note about limitation of generators by @Orrison in #3000
  • Update README.md to reference pest by @michaellindahl in #3004
  • Update CleanCommand to delete depreciated responsive images by @michaellindahl in #3003

New Contributors

  • @schonhoff made their first contribution in #3001
  • @Orrison made their first contribution in #3000
  • @michaellindahl made their first contribution in #3004

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.4.3...10.4.4

10.4.3 - 2022-08-02

  • Revert order media relationship

10.4.2 - 2022-08-01

What's Changed

  • Upgrade example using JSON_EXTRACT by @erikn69 in #2970
  • clearMediaCollection() documentation clarification by @chimit in #2972
  • Added information that media wont be deleted if the deleted model use… by @titonova in #2993
  • Order media relationship by @Propaganistas in #2992

New Contributors

  • @chimit made their first contribution in #2972
  • @titonova made their first contribution in #2993
  • @Propaganistas made their first contribution in #2992

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.4.1...10.4.2

10.4.1 - 2022-06-24

What's Changed

  • Add @template annotation to FileAdder by @sforward in #2964

New Contributors

  • @sforward made their first contribution in #2964

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.4.0...10.4.1

10.4.0 - 2022-06-22

What's Changed

  • Update introduction.md by @trippo in #2951
  • Fix a typo by @bvtterfly in #2952
  • Update preparing-your-model.md by @timgavin in #2955
  • Add support for Laravel's Attachable objects by @freekmurze in #2963

New Contributors

  • @bvtterfly made their first contribution in #2952
  • @timgavin made their first contribution in #2955

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.3.6...10.4.0

10.3.6 - 2022-05-23

What's Changed

  • add webp conversion support by @Jim-Webfox in #2928

New Contributors

  • @Jim-Webfox made their first contribution in #2928

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.3.5...10.3.6

10.3.5 - 2022-05-19

What's Changed

  • Fix PhpStan test by @erikn69 in #2910
  • Fix media-library:clean command when using custom path generators by @YellowFish085 in #2925

New Contributors

  • @YellowFish085 made their first contribution in #2925

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.3.4...10.3.5

10.3.4 - 2022-05-05

  • use anonymous migration

10.3.3 - 2022-05-03

What's Changed

  • Bump laravel version in docs by @karvaka in #2885
  • fix anchor links by @goellner in #2902
  • Prevent error when extracting an image from a video by @prullenbak in #2904

New Contributors

  • @karvaka made their first contribution in #2885
  • @goellner made their first contribution in #2902

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.3.2...10.3.3

9.12.3 - 2022-04-07

What's Changed

  • wip by @freekmurze in #2851
  • Change MediaRepository to scoped instance (Octane support) by @AlexVanderbist in #2877

New Contributors

  • @WouterBrouwers made their first contribution in #2859

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.12.0...9.12.3

10.3.2 - 2022-04-07

What's Changed

  • Change MediaRepository to scoped instance (Octane support) by @AlexVanderbist in #2876

New Contributors

  • @JavierMartinz made their first contribution in #2871

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.3.1...10.3.2

10.3.1 - 2022-03-31

What's Changed

  • Fix Htmlable render media by @Balsakup in #2864

New Contributors

  • @Balsakup made their first contribution in #2864

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.12.2...10.3.1

9.12.2 - 2022-03-24

What's Changed

  • Add explanation for processing responses by @SahinU88 in #2850
  • Update percentage value in the config file by @ClouddJR in #2856
  • Fix responsive url generation by @mabdullahsari in #2852

New Contributors

  • @SahinU88 made their first contribution in #2850
  • @ClouddJR made their first contribution in #2856
  • @mabdullahsari made their first contribution in #2852

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.12.1...9.12.2

9.12.1 - 2022-03-21

What's Changed

  • Small Typo by @Crowly34 in #2847

New Contributors

  • @Crowly34 made their first contribution in #2847

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.3.0...9.12.1

10.3.0 - 2022-03-18

What's Changed

  • Documentation improvements by @freekmurze in #2844
  • Added setConnection in FileAdder processMediaItem (v10) by @davidrushton in #2846

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.2.0...10.3.0

9.12.0 - 2022-03-18

What's Changed

  • Update DefaultUrlGenerator.php by @matt127127 in #2837
  • Added setConnection in FileAdder processMediaItem by @davidrushton in #2843

New Contributors

  • @matt127127 made their first contribution in #2837
  • @davidrushton made their first contribution in #2843

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.11.4...9.11.5

10.2.0 - 2022-03-17

What's Changed

  • Allow path generators to be customised per model by @freekmurze in #2845

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.1.5...10.2.0

10.1.4 - 2022-03-15

What's Changed

  • Fix High CPU Usage by @voyula in #2840

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.1.3...10.1.4

10.1.3 - 2022-03-10

What's Changed

  • Update .gitattributes by @angeljqv in #2829
  • Update DefaultUrlGenerator.php by @prullenbak in #2831

New Contributors

  • @angeljqv made their first contribution in #2829

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.1.2...10.1.3

10.1.2 - 2022-03-04

What's Changed

  • remove unused import by @HAstaShakiba in #2806
  • Use newer syntax for accessors by @phh in #2813
  • Fix phpstan errors in ci by @phh in #2817
  • add property-read for accessors by @phh in #2814
  • [10.x] Added string support for id in deleteMedia() by @rcerljenko in #2823

New Contributors

  • @phh made their first contribution in #2813

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.1.1...10.1.2

9.11.4 - 2022-02-23

What's Changed

  • Change to forceDelete in move method of Media by @ziming in #2804

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.11.3...9.11.4

10.1.1 - 2022-02-23

What's Changed

  • Change to forceDelete in move method of Media by @ziming in #2803

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.1.0...10.1.1

10.1.0 - 2022-02-22

What's Changed

  • Update UPGRADING.md by @JesseKoper in #2787
  • Add collection template to collections by @bastien-phi in #2788
  • remove white space by @HAstaShakiba in #2795
  • Fix class case by @Synchro in #2798
  • Add TIFF support in v10 by @Synchro in #2802

New Contributors

  • @JesseKoper made their first contribution in #2787
  • @bastien-phi made their first contribution in #2788
  • @HAstaShakiba made their first contribution in #2795

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.0.7...10.1.0

9.11.3 - 2022-02-21

What's Changed

  • Tiff support by @Synchro in #2799

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.11.2...9.11.3

9.11.2 - 2022-02-16

What's Changed

  • Tiny refactoring of file by @hichxm in #2707
  • Fix Test by @erikn69 in #2712
  • Add docs to disable dragula cdn by @lukasleitsch in #2711
  • fix: explicitly load media by @jaulz in #2785

New Contributors

  • @hichxm made their first contribution in #2707

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.11.1...9.11.2

10.0.7 - 2022-02-16

What's Changed

  • fix: explicitly load media by @jaulz in #2784

New Contributors

  • @jaulz made their first contribution in #2784

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.0.6...10.0.7

10.0.6 - 2022-02-11

  • improve deps

10.0.5 - 2022-02-11

  • improve deps

10.0.4 - 2022-02-09

  • improve dependencies

10.0.3 - 2022-02-03

What's Changed

  • Fix jsonSerialize return type by @orkhanahmadov in #2756

New Contributors

  • @orkhanahmadov made their first contribution in #2756

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/10.0.2...10.0.3

10.0.2 - 2022-01-28

Move Larastan to dev deps

10.0.1 - 2022-01-19

  • fix return type

10.0.0 - 2022-01-14

What's Changed

  • Add support for Laravel 9
  • Tiny refactoring of file by @hichxm in #2707
  • Fix Test by @erikn69 in #2712
  • Add docs to disable dragula cdn by @lukasleitsch in #2711

New Contributors

  • @hichxm made their first contribution in #2707

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.11.1...10.0.0

9.11.1 - 2021-12-17

What's Changed

  • add index to order_column migration by @petsoukos in #2704

New Contributors

  • @petsoukos made their first contribution in #2704

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.11.0...9.11.1

9.11.0 - 2021-12-17

What's Changed

  • Add starting-from-id option to regenerate command by @billypoke in #2688

New Contributors

  • @billypoke made their first contribution in #2688

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.10.3...9.11.0

9.10.3 - 2021-12-16

What's Changed

  • Update .gitattributes by @PaolaRuby in #2701

New Contributors

  • @PaolaRuby made their first contribution in #2701

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.10.2...9.10.3

9.10.2 - 2021-12-14

What's Changed

  • Reverts #2638 which proved to be buggy by @freekmurze in #2697

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.10.1...9.10.2

9.10.1 - 2021-12-13

What's Changed

  • Update installation-setup.md by @Ondoz in #2693
  • Fix for deleted files on copy media to model by @jon-sm in #2694

New Contributors

  • @Ondoz made their first contribution in #2693
  • @jon-sm made their first contribution in #2694

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.10.0...9.10.1

9.10.0 - 2021-12-09

What's Changed

  • Fixed typo in attribute name by @trnxpace in #2617
  • Remove the need for a TemporaryDirectory when copying media by @cole-flexsim in #2638
  • add filter param to hasMedia() by @fheider in #2648

New Contributors

  • @trnxpace made their first contribution in #2617
  • @cole-flexsim made their first contribution in #2638
  • @fheider made their first contribution in #2648

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.9.1...9.10.0

9.9.1 - 2021-12-03

What's Changed

  • Check for lower and uppercase image extensions but always return the original extension for conversions by @timvanuum in #2683

New Contributors

  • @timvanuum made their first contribution in #2683

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.9.0...9.9.1

9.9.0 - 2021-11-17

What's Changed

  • Add 'toInlineResponse' to Media by @mbardelmeijer in #2636

Full Changelog: https://github.com/spatie/laravel-medialibrary/compare/9.8.4...9.9.0

9.8.4 - 2021-11-12

What's Changed

  • Update defining-conversions.md by @mansoorkhan96 in #2665
  • Add --with-responsive-images option to RegenerateCommand by @DanielHudson in #2671

New Contributors

  • @mansoorkhan96 made their first contribution in #2665
  • @DanielHudson made their first contribution in #2671

9.8.3 - 2021-10-19

  • appends preview_url and original_url to Media object

9.8.2 - 2021-10-13

  • revert #2609

9.8.1 - 2021-10-08

  • fix missing image preview URLs in Inertia Projects (#2609)

9.8.0 - 2021-10-04

  • add simpler way to prefix the root directory where media are saved (#2576)

9.7.5 - 2021-10-03

  • Remove regex on FileNamer (#2587)

9.7.4 - 2021-09-10

  • include --force param to image_optimzer . jpegoptim (#2580)

9.7.3 - 2021-09-04

  • make sure only the extension is removed on DefaultFileNamer (#2575)

9.7.2 - 2021-08-22

  • add custom header support for temporary uploads (#2557)

9.7.1 - 2021-07-29

  • allow keepOriginalImageFormat() method to work with uppercase file extensions (#2527)

9.7.0 - 2021-07-28

  • add getMediaRepository() to InteractsWithMedia and query() to MediaRepository (#2523)

9.6.4 - 2021-06-23

  • fix syntax error

9.6.3 - 2021-06-23

  • add the option to skip 'deprecated conversions' when cleaning the media directory

9.6.2 - 2021-05-06

  • simplify and speed up code for copying a stream to disk (#2425)

9.6.1 - 2021-05-06

  • update InteractsWithMedia.php (#2421)

9.6.0 - 2021-05-05

  • add a way to rename files globally (#2418)

9.5.6 - 2021-04-20

  • include extra_headers when adding media from same S3 Disk (#2403)

9.5.5 - 2021-04-13

  • fix adding private media from same S3 Disk (#2382)

9.5.4 - 2021-04-12

  • add Collection typehint to addMultipleMediaFromRequest (#2389)

9.5.3 - 2021-04-08

  • fix #2372 the fallback should be the original image (#2377)

9.5.2 - 2021-04-07

  • allow v2 of spatie/temporary-directory

9.5.1 - 2021-04-05

  • return Fallback url or path when conversion is not ready yet (#2369)

9.5.0 - 2021-03-29

  • add addMediaFromStream (#2363)

9.4.4 - 2021-03-15

  • allow null in the FileAdder 'order' setter (#2336)

9.4.3 - 2021-03-07

  • DiskDoesNotExist moved to it's own class (#2306)

9.4.2 - 2021-01-15

  • improve preservingOriginal (#2258)

9.4.1 - 2020-12-16

  • fixed generated conversions race-condition (#2235)

9.4.0 - 2020-12-02

  • add moves_media_on_update config value

9.3.0 - 2020-11-30

  • add generate_thumbnails_for_temporary_uploads config value

9.2.0 - 2020-11-26

  • add enable_temporary_uploads_session_affinity config value

9.1.7 - 2020-11-24

  • add unique index to UUID column (#2197)

9.1.6 - 2020-11-24

  • fixes incompatible return types error caused by PHPStorm's inability to resolve self (#2198)

9.1.5 - 2020-11-22

  • fix custom file names for media library pro

9.1.4 - 2020-11-19

  • automatically delete conversion jobs for deleted models (#2191)

9.1.3 - 2020-11-12

  • improve optimizer defaults

9.1.2 - 2020-11-11

  • add original_url to MediaCollection.

9.1.1 - 2020-11-05

  • allow media collection to work with media library pro

9.1.0 - 2020-11-04

  • allow image generators to accept config (#2156)

9.0.1 - 2020-10-30

  • do not enable vapor uploads by default

9.0.0 - 2020-10-30

  • add support for Media Library Pro
  • names of the generated conversions will now be put in a dedicated generated_conversions on media
  • responsive image files can now be named using the file_namer key in the media-library config file (#2114)

8.10.1 - 2020-10-05

  • add queue_conversions_by_default to config file

8.9.3 - 2020-10-03

  • fix responsive images

8.9.2 - 2020-10-02

  • improve responsive image inline script (#2032)

8.9.1 - 2020-10-02

  • missing $loadingAttributeValue test in image view (#2082)

8.9.0 - 2020-09-30

  • add support to include ResponsiveImages based on condition (#2036)

8.8.0 - 2020-09-30

  • allow to change the way the images are being downloaded (#2054)

8.7.5 - 2020-09-30

  • fix for default lazy="auto" value (#2081)

8.7.4 - 2020-09-30

  • fixed conversions when disk != conversions_disk (#2080)

8.7.3 - 2020-09-28

  • fix file deletion problem (#2073)

8.7.2 - 2020-09-20

  • allow Guzzle 7 in dev-deps

8.7.1 - 2020-09-08

  • add support for Laravel 8

8.7.0 - 2020-09-04

  • add toMediaLibrary

8.6.0 - 2020-08-25

  • add useZipOptions

8.5.2 - 2020-08-25

  • fix for custom zip path (#2016)

8.5.1 - 2020-08-24

  • keep sizes 1px if width is 0px (#1993)

8.5.0 - 2020-08-06

  • add method to get registered media collections (#1976)

8.4.1 - 2020-08-03

  • add addMediaFromString

8.4.0 - 2020-08-03

  • add addFromString

8.3.3 - 2020-06-30

  • fix responsive image urls when conversions are stored on different disk. (#1944)

8.3.2 - 2020-06-22

  • report an error when it can't delete a directory (#1938)

8.3.1 - 2020-06-22

  • improve handling of file names with special characters (#1937)

8.3.0 - 2020-06-11

  • added Spatie\MediaLibrary\MediaCollections\Models\Collections\MediaCollection

8.2.9 - 2020-06-08

  • changed freads to fgets as per issue #812 (#1909)

8.2.8 - 2020-05-16

  • when generating responsive images the quallity option of the original will be used (#1881)

8.2.7 - 2020-05-12

  • Unset loaded 'media' relation during updateMedia() (#1878)

8.2.6 - 2020-05-10

  • revert slash because of Vapor errors (#1869)

8.2.5 - 2020-05-07

  • set the media table name explicitly to media to avoid failure caused by doctrine/inflictor now using medias as the plural

8.2.4 - 2020-05-01

  • fix for when using custom model (#1857)

8.2.3 - 2020-04-29

  • fixed duplicated path prefix for temporary urls (#1853)

8.2.2 - 2020-04-29

  • fixed duplicated / in paths (#1854)

8.2.1 - 2020-04-20

  • do not allow local files to be used in addMediaFromUrl

8.2.0 - 2020-04-14

  • add page number support for Pdf image generator (#1829)

8.1.0 - 2020-04-07

  • add support for zip_filename_prefix in custom properties

8.0.8 - 2020-04-02

  • allow ZipStream 2.0 (#1812)

8.0.7 - 2020-03-03

  • solve error when using flysystem-cached-adapter (#1803)

8.0.6 - 2020-03-24

  • fix comment in config file

8.0.5 - 2020-03-24

  • Use float for extractVideoFrameAtSecond (#1794)

8.0.4 - 2020-03-24

  • update php-ffmpeg to ^0.15

8.0.3 - 2020-03-18

  • add callable filter support to getFirstMedia() (#1781)

8.0.1 - 2020-03-11

  • set conversion disk when adding media from remote (#1764)

8.0.0 - 2020-03-09

  • added uuid on media table
  • an empty string is now a proper collection name. getMedia('') will not return media from the default collection anymore (#1697).
  • add the ability to store conversions on a separate disk
  • simplify URL generation. You can now just use the root and url properties on a configured disk
  • spatie/pdf-to-image is now a suggestion dependency, removing the need for always having to install ext-imagick
  • added shouldMatchBothExtensionsAndMimeTypes to Spatie\MediaLibrary\ImageGenerators\BaseGenerator
  • added progress bar on the clean command (#1623)
  • the UrlGenerator interface now contains all required methods (#1656)
  • use PHP 7.4 features where possible
  • added support for the loading attribute (#1667)
  • conversion files can now be named using the conversion_file_namer key in the media-library config file (#1636)
  • improved naming of classes and namespaces.

To learn how to upgrade, take a look in UPGRADING.md

7.20.0 - 2021-05-26

  • add support for PHP 8

7.19.3 - 2020-03-09

  • fix responsive images extension (#1752)

7.19.2 - 2020-03-04

  • revert changes in 7.19.1

7.19.1 - 2020-03-04

  • Update S3 url generator to use media disk (#1755)

7.19.0 - 2020-03-03

  • add support for Laravel 7

7.18.3 - 2020-02-19

  • allow image_driver config to be set via .env #1738

7.18.2 - 2020-01-25

  • add support for Laravel 7

7.18.1 - 2019-11-25

  • revert of pull request #1604 because zip files could not be opened (#1660)

7.18.0 - 2020-01-05

  • add withResponsiveImages() to custom collection (#1681)

7.17.1 - 2019-12-15

  • fix custom disk url giving invalid urls (#1653)

7.17.0 - 2019-12-15

  • added diskName on copy and move methods in media model (#1666)

7.16.2 - 2019-12-15

  • correctly use the media item's disk when removing responsive images (#1668)

7.16.1 - 2019-12-11

  • escape responsive URL - Fix issue #1659 (#1661)

7.16.0 - 2019-12-02

  • add ability to upload files from a non-local disk

7.15.0 - 2019-11-25

  • bumped dependency of zipstream-php
  • fix so when creating a zip files are read only once (#1604)

7.14.2 - 2019-10-16

  • fix so files without extension could be added

7.14.1 - 2019-09-26

  • generate the name of the converted file in one place (#1577)

7.14.0 - 2019-09-25

  • add a config option to version urls (#1569)

7.13.0 - 2019-09-25

  • add a way to define accepted mime types (#1570)

7.12.4 - 2019-09-25

  • tidy up getFallbackMediaUrl and getFallbackMediaPath

7.12.3 - 2019-09-25

  • fix media stream not working (#1571)

7.12.2 - 2019-09-24

  • fix upload for very large files

7.12.1 - 2019-09-12

  • remove imagick requirement

7.12.0 - 2019-09-04

  • add support for Laravel 6

7.10.1 - 2019-08-28

  • do not export docs

7.10.0 - 2019-08-21

  • add onlyKeepLatest on MediaCollection

7.9.0 - 2019-08-07

  • FileAdder now is macroable

7.8.2 - 2019-07-31

  • make sure CollectionHasBeenCleared will be called when using clearMediaCollectionExcept

7.8.1 - 2019-07-31

  • fix for custom manipulations not getting applied to all relevant conversions with the same name

7.8.0 - 2019-07-31

  • make media collection macroable

7.7.0 - 2019-07-27

  • add useFallbackUrl and useFallbackPath to media collections

7.6.9 - 2019-07-22

  • avoid using deprecated str and arr functions

7.6.8 - 2019-07-22

  • fix for S3 Responsive Image URL Generator not using root

7.6.7 - 2019-07-22

  • allow stable version of zipstream

7.6.6 - 2019-07-22

  • fix absolute references to media.id

7.6.5 - 2019-07-16

  • Support jpeg in \Spatie\MediaLibrary\Conversion\Conversion::getResultExtension

7.6.4 - 2019-07-15

  • Add imagick as required extension, because of nested dependencies (#1480)

7.6.3 - 2019-07-12

  • --only-missing for queued conversions (#1465)

7.6.2 - 2019-07-11

  • Allow Uploading multiple files under the same name using array name (#1471)

7.6.0 - 2019-02-27

  • drop support for PHP 7.1

7.5.6 - 2019-02-19

  • add support for Laravel 5.8

7.5.5 - 2019-01-05

  • avoid exception when getting a video frame that does not exist

7.5.4 - 2019-01-04

  • only set custom_headers property if explicitly set

7.5.3 - 2019-01-03

  • use absolute urls for responsive image sources
  • fix sortable

7.5.2 - 2018-10-19

  • fix for issue #1277

7.5.1 - 2018-09-17

  • fix support for Lumen

7.5.0 - 2018-09-10

  • add rate limiting to clean command

7.4.3 - 2018-09-10

  • fix for determining extension for non-image filetypes

7.4.2 - 2018-09-05

  • fix a bug in clean command when no responsive images were generated

7.4.1 - 2018-08-24

  • add support for Laravel 5.7

7.4.0 - 2018-08-13

  • allow the job classes to be overridden in the config file

7.3.12 - 2018-07-30

  • make sure previews responsive images db entries get cleaned up before regenerating

7.3.11 - 2018-07-27

  • add $copiedOriginalFile to the ConversionWillStart event

7.3.10 - 2018-06-16

  • fix for multiple files with the same filename in one ZIP archive
  • fix markAsConversionGenerated: disable model events when saving extra properties in Media::updated event

7.3.9 - 2018-06-16

do not use - broken

  • fix markAsConversionGenerated

7.3.8 - 2018-05-15

  • fix ids option of RegenerateCommand

7.3.7 - 2018-05-15

  • bugfix around responsive images

7.3.6 - 2018-05-15

  • add support from webp

7.3.5 - 2018-05-08

  • fix bug where addMediaFromUrl would not work if the file contained a space

7.3.4 - 2018-05-07

  • proper check and tests on forced deletion with soft delete models.

7.3.3 - 2018-05-04

  • add dev dependency on pdo SQLite to prevent confusing errors.

7.3.2 - 2018-05-04

  • fix #1076

7.3.1 - 2018-05-02

  • fix custom properties not saved on copy (#1073)

7.3.0 - 2018-04-30

  • Add hasGeneratedConversion

7.1.8 - 2018-04-06

  • avoid removing the file when the model uses SoftDeletes

7.1.7 - 2018-04-24

  • improve checking applied traits on the Media model

7.1.6 - 2018-04-16

  • fix ffprobe path

7.1.5 - 2018-04-13

  • always use the correct image driver.

7.1.4 - 2018-04-13

  • ease maennchen/zipstream-php requirements

7.1.3 - 2018-03-30

  • Fix for renaming files when not all conversions are present
  • Fix bugs when working with remote filesystems

7.1.2 - 2018-03-22

  • fix a typo in medialibrary.disk_name.

7.1.0 - 2018-03-22

  • Filesystem interface removed.
  • rename Filesystem::renameFile(Media $media, string $oldFileName) to Filesystem::syncFileNames(Media $media)
  • The default_filesystem config key has been changed to disk_name.

7.0.6 - 2018-03-22

  • fix publishing views

7.0.5 - 2018-03-22

  • fix for adding remote files with no name

7.0.4 - 2018-03-21

  • fix responsive images rendering of conversions

7.0.3 - 2018-03-21

  • add null fallback when placeholder SVG isn't rendered yet (#967)
  • add ResponsiveImagesGenerated event

7.0.2 - 2018-03-21

  • support custom headers for conversions (#868)

7.0.0 - 2018-03-17

  • added support for responsive images
  • added MediaCollections
  • added single file collections
  • added ZipStreamResponse
  • added move and copy methods on Media
  • file names will be lowercased when adding them to the media library
  • the names of converted images will now start with the name of the original file
  • dropped support for soft deletes
  • removed distinction between HasMedia and HasMediaConversions
  • dropped support for PHP 7.0
  • ffmpeg_binaries renamed to ffmpeg_path, ffprobe_binaries renamed to ffprobe_path

6.9.0 - 2018-03-04

  • add wildcard manipulations

6.8.0 - 2018-03-03

  • add withManipulations to FileAdder

6.7.0 - 2018-03-02

  • add support for root config key for s3 disks.

6.6.9 - 2018-02-08

  • add support for L5.6

6.6.8 - 2018-02-05

  • change the directory deletion order

6.6.7 - 2018-01-07

  • use better default for s3 domain

6.6.6 - 2017-12-30

  • fix download error

6.6.5 - 2017-12-30

  • make returning media in controllers always download the associated file

6.6.4 - 2017-12-24

  • update spatie/image dep

6.6.3 - 2017-11-28

  • fix clearing entire media collection except a single media instance

6.6.2 - 2017-11-07

  • improve config comments

6.6.1 - 2017-11-02

  • fixed the spelling of the getFirstTemporaryUrl method

6.6.0 - 2017-11-02

  • add getFirstTemporaryUrl

6.5.0 - 2017-10-24

  • add only-missing and only options to the media-library:regenerate command

6.4.2 - 2017-10-20

  • fix correct minimal versions for league/flysystem and spatie/image when using --prefer-lowest option with composer

6.4.1 - 2017-10-19

  • fix deletion of files when using a custom path generator

6.4.0 - 2017-10-16

  • implement Responsable interface
  • improve sanitizing filenames

6.3.0 - 2017-10-16

  • add sanitizingFileName

6.2.1 - 2017-10-16

  • fix for working with large files

6.2.0 - 2017-10-10

  • add ConversionWillStart event

6.1.3 - 2017-10-02

  • fixed URL-encoding for S3 files

6.1.2 - 2017-09-25

  • bugfix: getTemporaryUrl now uses disk name instead of disk driver

6.1.1 - 2017-09-19

  • bugfix: remove getTemporaryUrl method from UrlGenerator interface

6.1.0 - 2017-09-19

  • add getTemporaryUrl method for media stored on S3

6.0.0 - 2017-08-30

  • add compatibility for Laravel 5.5
  • dropped support for older Laravel versions
  • the signature of registerMediaConversions has been changed
  • the default disk has changed from media to public
  • defaultFilesystem config option has been renamed to default_filesystem

5.14.0 - 2017-08-25

  • add getPath to S3UrlGenerator

5.13.2 - 2017-08-03

  • fix error when try to close a file that was already closed by flysystem

5.13.1 - 2017-08-03

  • fix MediaCannotBeDeleted exception

5.13.0 - 2017-07-22

  • add support for soft deletes

5.12.1 - 2017-07-11

  • fixed array fields in addMultipleMediaFromRequest

5.12.0 - 2017-05-30

  • add parameter to specify allowed mime types to addMediaFromUrl and addMediaFromBase64

5.11.1 - 2017-05-23

  • fix bugs regarding attaching media to non-existing models

5.11.0 - 2017-05-10

  • add support to addAllMediaFromRequest for file names in the request that contain an array

5.10.0 - 2017-04-18

  • show progress bar when regenerating media

5.9.0 - 2017-04-12

  • media can now be attached to unsaved models

5.8.2 - 2017-04-03

  • fix bug where mediaIsPreloaded always returned true

5.8.1 - 2017-03-30

  • fix bug where the wrong extension would be returned by getResultExtension for keepOriginalImageFormat

5.8.0 - 2017-03-24

  • add clearMediaCollectionExcept method

5.7.0 - 2017-03-23

  • add keepOriginalImageFormat manipulation

5.6.0 - 2017-03-22

  • add toMediaCollection

5.5.3 - 2017-03-16

  • fix bug where streams would be used on external filesystems that do not support streaming

5.5.2 - 2017-03-08

  • prevent migration from being published multiple times
  • LocalUrlGenerator will now use the url property of disk when one has been set

5.5.1 - 2017-03-08

  • fix for using MediaRepository with a custom media model

5.5.0 - 2017-03-08

  • add createMultipleFromRequest and createAllFromRequest on FileAdder

5.4.0 - 2017-03-08

  • add temporary_directory_path to config

5.3.3 - 2017-03-06

  • fix bug around getRemoteHeadersForFile()

5.3.2 - 2017-03-01

  • fix for undefined function getPath when using S3

5.3.1 - 2017-03-01

this version is broken, do not use

  • fix for undefined function getPath when using S3

5.3.0 - 2017-02-22

  • add support for registerMediaConversionsUsingModelInstance

5.2.0 - 2017-02-20

  • add addMediaFromBase64

5.1.0 - 2017-02-17

  • add fullUrl method

5.0.2 - 2017-02-07

  • fix loading manipulations from the db

5.0.1 - 2017-02-06

  • fix for getFirstMediaUrl() always returning the url for the first conversion

5.0.0 - 2017-02-06

  • add toMediaLibraryOnCloudDisk
  • image generators may now be specified in the config file
  • use json columns for manipulations and custom_properties
  • refactor all functions in FileCannotBeAdded to their own exception classes
  • rename config file from laravel-medialibrary to medialibrary
  • remove toCollection and toCollectionOnDisk and toMediaLibraryOnDisk
  • replace dependency on spatie/laravel-glide by spatie/image
  • mime types will now be stored in the database so they can be queried even if files are stored on external filesystems
  • rename Spatie\MediaLibraryFilesystemInterface to Spatie\MediaLibrary\Filesystem\Filesystem
  • remove withCustomProperties, getNestedCustomProperty, setNestedCustomProperty, forgetNestedCustomProperty and hasNestedCustomProperty
  • drop support for Lumen and anything below Laravel 5.4
  • clean up all classes

KNOWN BUG: loading manipulations from the db doesn't work in certain edge cases, fix incoming soon

4.13.0 - 2017-01-30

  • add FilesystemInterface

4.12.1 - 2017-01-27

  • avoid unnecessary regeneration of conversions when saving a model

4.12.0 - 2017-01-23

  • add support for Laravel 5.4
  • drop support for Laravel 5.1

4.11.3 - 2017-01-20

  • put files using r mode instead of r+

4.11.2 - 2017-01-17

  • avoid creating / deleting temp dir if no conversions should be performed

4.11.1 - 2017-01-14

  • fix bug in setNewOrder

4.11.0 - 2017-01-10

  • added hasNestedCustomProperty, getNestedCustomProperty, setNestedCustomProperty and forgetNestedCustomProperty to use dot notation with custom properties
  • renamed removeCustomProperty to forgetCustomProperty (removeCustomProperty still exists but is marked as deprecated)

4.10.3 - 2017-01-09

  • fix for getting preloaded media in the wrong order

4.10.2 - 2016-12-17

  • refactored the preloading of media

4.10.1 - 2016-12-12

  • reduce amount of calls to s3

4.10.0 - 2016-12-09

  • add addCustomHeaders function

4.9.5 - 2016-10-25

  • improve returned values for getUrl methods

4.9.4 - 2016-10-21

  • fix for image generators when using S3

4.9.3 - 2016-10-13

  • the image generators will now do their supported extensions check in a case insensitive manner

4.9.2 - 2016-10-06

  • fixed bug where an exception would be raised when using S3

4.9.1 - 2016-09-23

  • fix bug where urls to media would not be encoded anymore

4.9.0 - 2016-09-23

  • introduced ImageGenerators

4.8.4 - 2016-09-15

  • encode urls to media

4.8.3 - 2016-08-25

  • fix svg and pdf file path when performing conversions

4.8.2 - 2016-08-24

  • made compatible with L5.3

4.8.1 - 2016-08-19

  • fixed some files that had a wrong namespace

4.8.0 - 2016-08-07

  • added thumbnail generation for video's
  • added force option to the artisan commands

4.7.1 - 2016-08-02

  • fixed the src format option when dealing with jpegs

4.7.0 - 2016-07-18

  • added mime attribute on the Media model

4.6.0 - 2016-07-15

  • added removeCustomProperty function

4.5.0 - 2016-07-09

  • added media-library:clean command
  • the media-library:regenerate will continue regenerating files even if a primary media file is missing

4.4.1 - 2016-07-08

  • Fix regeneration command (see #260). It'll now properly regenerate files for all passed media id's

4.4.0 - 2016-07-06

  • Add support for converting svg's

4.3.0 - 2016-06-23

  • Add Lumen compatibility

4.2.1 - 2016-06-03

  • Delete the conversion directory even when it is not underneath the media directory

4.2 - 2016-06-03

  • Added the src option for the fm conversion parameter

4.1 - 2016-06-02

  • Added shouldDeletePreservingMedia

4.0.1 - 2016-04-25

  • Fixed queued jobs in Laravel 5.1

4.0.0 - 2016-04-13

  • add support for Glide 1.0
  • added addMediaFromRequest method
  • small refactors

3.17.4 - 2016-04-12

  • Only detect mimetype from file on local disks

3.17.3 - 2016-04-04

  • Fixed an issue that occurred when deleting models with media in some php versions

3.17.2 - 2016-03-25

  • Fixed mistakes in the version constraints on the illuminate components

3.17.1 - 2016-03-24

  • Improved the file type detection for files without an extension

3.17.0 - 2016-03-23

  • Added support for morphMap

3.16.1 - 2016-03-20

  • Improved the compatibility with packages that hook into the delete method of an Eloquent model

3.16.0

  • The regenerate-command now accepts an ids-option

3.15.0

  • Added media-library:clear command

3.14.1

  • Make migrations compatible with mysql's strict mode

3.14.0

  • Added a deletePreservingMedia-function that will delete the model but not remove the associated files

3.13.4

  • Use config_path helper in ServiceProvider to allow easier integration in Lumen

3.13.3

  • Recognize gifs as images

3.12.2

  • Removed support for laravel-glide v3
  • Added missing InvalidNewOrder-exception

3.12.1

Important node: there is a bug in this version that prevents the creation of derived files

  • Add support for laravel-glide v3

3.12.0

  • Add configurable headers when uploading media to a remote disk

3.11.3

  • use database_path when publishing migrations

3.11.2

  • Fixed the processing a file name with special characters

3.11.1

  • Remove adding .gitignore files

3.11.0

  • Accept Symfony\Component\HttpFoundation\File\File-object when adding files

3.10.2

  • Fixed mime-type errors when using the local filesystem

3.10.1

  • Fixed the event names to make them more readable CollectionHasBeenCleared, ConversionHasBeenCompleted, MediaHasBeenAdded

3.10.0

  • Added CollectionClearedEvent, ConversionCompleteEvent, MediaAddedEvent

3.9.2

  • Fixed an issue where a model would not regenerate manipulations after changing manipulations on media

3.9.1

  • Fix bug when using a custom UrlGenerator class

3.9.0

  • Added PathGenerator

This version contains a bug when using a custom UrlGenerator, please upgrade to 3.9.1

3.8.0

  • Added ability to add media from a url

$media = $this->testModel->addMediaFromUrl($url)

3.7.3

  • clearMediaCollection is now chainable

3.7.2

  • Add mimetype when putting a file on a disk.

3.7.1

  • Fix generation of local url's on non-unix hosts

3.7.0

  • Added setCustomProperty-method on Media

3.6.0

  • Added withProperties and withAttributes methods

3.5.1

  • Bugfix: HasMediaTrait::updateMedia now also updates custom properties. It also updates the order column starting at 1 instead of 0 (behaves the same as the sortable trait)

3.5.0

  • Added the ability to provide a default value fallback to the getCustomProperty method

3.4.0

  • Added support for using a custom model

3.3.1

  • Fixed a bug where conversions would always be performed on the default queue

3.3.0

  • Added hasCustomProperty- and getCustomProperty-convenience-methods

3.2.5

  • Allow 0 for x and y parameters in setRectangle

3.2.4

  • Removed dependency on spatie/eloquent-sortable

3.2.3

  • Add index to morphable fields in migration which could improve performance.
  • Remove unnecessary query when adding a file

3.2.2

  • Fixes tests

3.2.1

  • Add index to morphable fields in migration which could improve performance.
  • NOTE: if you started out using this version, the tests will be broken. You should make sure
  • model_id and model_type are nullable in your database.

3.2.0

  • Added functions to get a path to a file in the media library

3.1.5

  • Avoid creating empty conversions-directories

3.1.4

  • Fixed a bug where chaining the conversion convenience methods would not give the right result

3.1.3

  • Fixed a bug where getByModelType would return null

3.1.2

  • Images and pdf with capitalized extensions will now be recognized

3.1.1

  • Fixed: a rare issue where binding the command would fail

3.1.0

  • Added: methods to rename the media object and file name before adding a file to the collection

3.0.1

  • Fixed: updateMedia now returns updated media

3.0.0

  • Replaced addMedia by a fluent interface
  • Added the ability to store custom properties on a media object
  • Added support for multi-filesystem libraries
  • getMedia will now return all media regardless of collection
  • hasMedia will count all media regardless of collection
  • Uploads can now be processed directly when importing a file
  • Renamed various classes to better reflect their functionality

2.3.0

  • Added: hasMedia convenience method

2.2.3

  • Fixed: when renaming file_name on a media object the original file gets renamed as well

2.2.2

  • Fixed: use FQCN for facades instead of using the aliases

2.2.1

  • Fixed an issue where too many queries were executed

2.2.0

  • Added hasMediaWithoutConversions-interface

2.1.5

  • Fixes a bug where a valid UrlGenerator would not be recognized

2.1.4

  • Fixes a bug where an exception would be thrown when adding a pdf on systems without Imagick installed

2.1.3

  • Fixes some bugs where files would not be removed when deleting a media-object

2.1.2

  • Require correct version of spatie/string

2.1.1

  • Bugfix: correct typehint in HasMediaTrait

2.1.0

  • Added some convenience methods for some frequent used manipulations

2.0.1

  • fix bug in regenerate command

2.0.0

This version is a complete rewrite. Though there are lots of breaking changes most features of v1 are retained. Notable new functions:

  • filesystem abstraction: associated files can be stored on any filesystem Laravel 5's filesystem allows. So you could for instance store everything on S3.
  • thumbnails can now be generated for pdf files
  • registering conversions has been made more intuïtive
  • it's now very easy to add custom logic to generate urls
  • images can be manipulated per media object

1.6.2

  • Bugfix: prevent migration from being published multiple times

1.6.1

  • Small bugfixes

1.6.0

  • Added: Spatie\MediaLibrary\Models\Media::getHumanReadableFileSize()

1.5.6

  • Bugfix: make compatible with Laravel 5.1

1.5.5

  • Bugfix: Renamed the boot method of MediaLibraryModeltrait so it plays nice with the boot method of
  • other traits and the base model.

1.5.4

  • Feature: The profile parameter in Media::getUrl() and MediaLibraryModelTrait::getUrl() is now optional. On null, it retrieves the original file's url.
  • Bugfix: Media::getOriginalUrl() now returns the correct url.

1.5.3

  • Bugfix: Removed unnecessary static methods from MediaLibraryModelInterface

1.5.0

  • Added a method to remove all media in a collection.

1.1.4

  • Fixed a bug where not all image profiles would be processed
  • Added getImageProfileProperties()to interface

1.1.3

  • Create the media library directory if it does not exist

1.1.2

  • Files without extensions are now allowed

1.1.1

  • Added check to make sure the file that must be added to the media library exists

1.1.0

  • Added option to specify the name of the queue that should be used to create image manipulations

1.0.0

  • initial release