Skip to content

Releases: spatie/laravel-medialibrary

11.21.2

23 Apr 08:15

Choose a tag to compare

What's Changed

  • fix: skip URL encoding for S3 disk to prevent double encoding by @moemadeldin in #3934

Full Changelog: 11.21.1...11.21.2

11.21.1

22 Apr 07:49
422b7ff

Choose a tag to compare

What's Changed

  • Fix docs bugs: 'to the where' typo and 'how to working with conversio… by @tareq-halaby in #3928
  • Fix awkward phrasing: 'want to not move, but copy' -> clearer wording by @tareq-halaby in #3927
  • fix: encode percent signs in filenames when generating URL by @moemadeldin in #3930

New Contributors

Full Changelog: 11.21.0...11.21.1

11.21.0

21 Feb 15:59
d6e2595

Choose a tag to compare

What's Changed

  • Add Laravel 13 support

11.20.0

15 Feb 21:03
7eb9b31

Choose a tag to compare

What's new

  • Add getAvailableTemporaryUrl method (#3919)

Full Changelog: 11.19.0...11.20.0

11.19.0

12 Feb 13:06
4a5e91c

Choose a tag to compare

What's Changed

Full Changelog: 11.18.2...11.19.0

11.18.2

09 Feb 21:27
ab6d909

Choose a tag to compare

What's Changed

  • Fix setNewOrder breaking with non-sequential array keys by @freekmurze in #3916

Full Changelog: 11.18.1...11.18.2

11.18.1

09 Feb 17:56
dbb115e

Choose a tag to compare

What's Changed

  • Revert breaking interface change on registerAllMediaConversions() — the ?Media $media = null parameter that was added to the HasMedia interface in v11.18.0 has been removed, as it broke userland code that overrides the method without the parameter. The PHPStan error is now handled via the baseline instead. Fixes #3915.

11.18.0

09 Feb 13:58
5ea06e5

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 11.17.10...11.18.0

11.17.10

22 Jan 23:18
10bbf23

Choose a tag to compare

What's Changed

This new method is similar to getAvailablePath() but calls getPathRelativeToRoot() instead of getPath(). This is useful when working with both local and cloud filesystem drivers, as getPath() returns an absolute path that cannot be passed to Storage::get().

Example usage:

Storage::disk($media->disk)->get(
    $media->getAvailablePathRelativeToRoot(['conversion'])
)

Full Changelog: 11.17.9...11.17.10

11.17.9

22 Jan 23:09
ec79e6f

Choose a tag to compare

What's Changed

This fix resolves an issue where getStream() was forcing directory-style paths, making it impossible to use custom PathGenerators with non-directory paths (like prefixes). The fix allows developers to use filename prefixes such as {basePath}-{fileName}.

Full Changelog: 11.17.8...11.17.9