Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

srikanthgopi's avatar

Laravel Cloud Storage

Hello all,

I have three applications app.domain.com app1.domain.com app2.domain.com app3.domain.com all three use same database. However app2 and app3 use multiple database which is working fine and thats not the issue at all.

Issue is with the images. I want to store them onto a cloud storage system so that all the apps can have access to it. Saving it to public or storage folder on any of the apps doesnt give access to other apps....

I have read alot of articles which only show about cdn...few show about s3.

I'm developing the site on localhost. I modified hosts file and created thehealthsearch.com domain on xampp for my project. I have my live server with a shared hosting and i already own and configured the same website on live server.

  1. Are there any tutorials or cloud storage platforms that can be used on both localhost xampp and live storage as i cannot develop on live hosting.

  2. Could anyone tell me what's the best way to store images in this kinda scenario and which services do you recomment and any links that can help me get started

Thanks in advance

0 likes
3 replies
goatshark's avatar

@srikanthgopi This might sound a little over simplified, but I would suggest taking a look at Spatie's Laravel Medialibrary. The destination of the files should be dependent only on what filesystems you configure in Laravel and subsequently which filesystems you tell Medialibrary (or your code) to use.

srikanthgopi's avatar

@goatshark That solved my problem.

Which is the best filesystem to use? Im developing on local machine later which will be moved to a shared hosting serve

goatshark's avatar

@srikanthgopi Like so many other things, it depends. I think the one that you can afford and get working is a good place to start. I realize that that's kind of a dick answer, but . . . it depends.

Please or to participate in this conversation.