mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 08:14:02 +00:00
Merge branch 'queue-support' of github.com:stancl/tenancy into queue-support
This commit is contained in:
commit
cba67352b3
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ class TenancyServiceProvider extends ServiceProvider
|
|||
});
|
||||
|
||||
$this->app['events']->listen(\Illuminate\Queue\Events\JobProcessing::class, function ($event) {
|
||||
if (array_key_exists('tenant_uuid', $event->job->payload())) {
|
||||
if (\array_key_exists('tenant_uuid', $event->job->payload())) {
|
||||
tenancy()->initById($event->job->payload()['tenant_uuid']);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue