Skip to content

Commit

Permalink
Merge pull request #3389 from LukeAbell/patch-1
Browse files Browse the repository at this point in the history
Support drivers containing gcs or s3 in driver name
  • Loading branch information
sebastiandedeyne authored Sep 26, 2023
2 parents 22e25f3 + 078adc5 commit 87fb770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MediaCollections/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public function getMediaDirectory(Media $media, ?string $type = null): string
? $media->conversions_disk
: $media->disk;

if (! in_array($diskDriverName, ['s3', 'gcs'], true)) {
if (! Str::contains($diskDriverName, ['s3', 'gcs'], true)) {
$this->filesystem->disk($diskName)->makeDirectory($directory);
}

Expand Down

0 comments on commit 87fb770

Please sign in to comment.