github spatie/laravel-medialibrary 11.23.14

one hour ago

What changed

  • Resolve the related model through Laravel’s container when collecting conversions and cleaning original responsive images, so model bindings to subclasses are respected. Includes a regression test for bound model conversions. By @patrickweh in #3984.
  • Scope updateMedia() to the current model’s own media and validate submitted IDs before deleting omitted media, preventing cross-model updates and file loss on invalid input. Includes regression coverage in #3979.

PHP and Laravel requirements are unchanged. All 16 PHP/Laravel dependency-matrix jobs, formatting, and PHPStan passed on the PR head. The merged commit has identical file contents. The binding regression test was verified to fail without the fix; all 38 targeted conversion, cleanup, and updateMedia tests pass locally.

Full Changelog: 11.23.13...11.23.14

Don't miss a new laravel-medialibrary release

NewReleases is sending notifications on new releases.