Should be very easy just by adding new storage provider. Quick google will help you. One of the results for example https://snapshooter.com/blog/using-digitalocean-spaces-for-laravel-object-storage
May 13, 2022
5
Level 12
Working with DigitalOcean Spaces & Laravel
Hey!
Currently the app is uploading photos in the storage folder, which photos are publicly accessible. We want to move to DO Spaces and I'm curious what's the difference in the code. Here's how the app upload photos now
$name = 'review_'. $insert; // $insert is the actual review ID
$format = "webp";
$media = Image::make($request->media)->encode('webp', 90)
Storage::disk('reviews_media')->put($name . '.' . $format, $media, 'public')
Will the code be completely different with DO Space? What to actually store as a media_path value? A link to the image in the DO space domain or what? I'm afraid I won't be able to make this work. Please, give me some tips.
Level 25
Please or to participate in this conversation.