Change storage method to use public disk for assets

This commit is contained in:
Sebastian Albert 2026-05-19 09:31:40 +02:00 committed by GitHub
parent 78bee705ff
commit 3018c0353f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -145,7 +145,7 @@ public function storeFromUrl(StoreAssetFromUrlRequest $request, UnsplashService
$filename = Str::uuid().'.'.$extension;
$path = 'medias/'.$filename;
Storage::put($path, $response->body());
Storage::disk('public')->put($path, $response->body());
$meta = [];
$tempFile = tempnam(sys_get_temp_dir(), 'unsplash');