tenancy / multi-tenant

Run multiple websites using the same Laravel installation while keeping tenant specific data separated for fully independent multi-domain setups, previously github.com/hyn/multi-tenant
https://tenancy.dev
MIT License
2.56k stars 393 forks source link

Support Amazon S3 #901

Open xyrintech opened 4 years ago

xyrintech commented 4 years ago

Do we have the support for Amazon S3 for this package?

I have been trying toe filesystem for this package and documentation is very hard to understand for the things.

ArlonAntonius commented 4 years ago

I think there are actually people who used Amazon S3 in combination with this package. Really recommend you to look at the Filesystem and Laravel Docs regarding this. It's not something specific to this package that is making this hard.

juhasev commented 4 years ago

We solved this simply prefixing multiple tenants into their own folders based on UUID. Do not attempt to use multi-tenant for this. Ideally you will create a wrapper class on top of Laravel's file system (which supports S3 out of the box) that handles this automatically for you.