hipsterjazzbo / Landlord

A simple, single database multi-tenancy solution for Laravel 5.2+
MIT License
613 stars 139 forks source link

Preserve tenant ID when executing queued job #105

Closed timbertens closed 5 years ago

timbertens commented 5 years ago

Is there a way to submit a job to the queue and have it executed while the tenant id is preserved?

timbertens commented 5 years ago

stupid question ... of course you can just get the tenant_id from the job and use the Landlord::addTenant function. Might be even better if there was a Trait available that could be added to the job directly