We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 023572a commit f7676a7Copy full SHA for f7676a7
src/Conversion/Image.php
@@ -7,6 +7,7 @@
7
use Cone\Root\Models\Medium;
8
use Exception;
9
use GdImage;
10
+use Illuminate\Support\Facades\Config;
11
use Illuminate\Support\Facades\Storage;
12
use Illuminate\Support\Str;
13
@@ -48,7 +49,12 @@ public function __construct(Medium $medium)
48
49
{
50
$this->medium = $medium;
51
- $this->path = Storage::disk('local')->path('root-tmp/'.Str::random(40));
52
+ $disk = Storage::build([
53
+ 'driver' => 'local',
54
+ 'root' => Config::get('root.media.tmp_dir'),
55
+ ]);
56
+
57
+ $this->path = $disk->path(Str::random(40));
58
59
$this->type = exif_imagetype($medium->getAbsolutePath());
60
0 commit comments