What's Changed
- Add
getAvailablePathRelativeToRoot()method by @adriaanzon in #3877
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