Skip to content

Commit

Permalink
Use temporary folder of spatie/laravel-medialibrary for spatie/image …
Browse files Browse the repository at this point in the history
…as well (#3368)
  • Loading branch information
korridor authored Sep 5, 2023
1 parent e04cd80 commit 38af83a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Support/ImageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class ImageFactory
{
public static function load(string $path): Image
{
return Image::load($path)->useImageDriver(config('media-library.image_driver'));
return Image::load($path)->useImageDriver(config('media-library.image_driver'))
->setTemporaryDirectory(config('media-library.temporary_directory_path') ?? storage_path('media-library/temp'));
}
}

0 comments on commit 38af83a

Please sign in to comment.