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

5hadi's avatar
Level 1

Laravel and subdomains , different servers.

I have my laravel application on this domain : "example.com"

i want to be able to store files on this domain "sub.example.com" which is on a different hosting service from my main laravel app.

also i want to be able to delete files from the subdomain directory using my laravel app.

how to do that ?

0 likes
2 replies
tuneless's avatar

yeah as @RamjithAp propose, search for a shared filesystem. could be FTP, mounted NFS, S3 or similar etc... I prefer S3 object storage for single files. since it's another hosting service you have to watch for the most performant shared filesystem service in this situation.

Please or to participate in this conversation.