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 394 forks source link

Is there any way to make jobs use tenants database ? #892

Open rawdasherif119 opened 4 years ago

rawdasherif119 commented 4 years ago

is there any way to make jobs use tenants database ? because jobs by default use system database i am in system database as admin and i wanna to fire job for all tenant i tried to use UsesTenantConnection but without and output

mepoohsta commented 4 years ago

is there any way to make jobs use tenants database ? because jobs by default use system database i am in system database as admin and i wanna to fire job for all tenant i tried to use UsesTenantConnection but without and output

Maybe you don't understand how it works. Jobs not using database at all, they are execute some code, maybe you use Eloquent models in your job? Do you add "UsesTenantConnection" to your Eloquent model or Job?

ArlonAntonius commented 4 years ago

Hi there,

Is there anything we can help you with related to this issue or did you figure it out? :)