1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 17:34:03 +00:00
This commit is contained in:
Samuel Štancl 2019-08-18 22:43:50 +02:00
parent fb5cdb3239
commit 9f72bb2a69

View file

@ -70,10 +70,13 @@ class TenancyServiceProvider extends ServiceProvider
{ {
$this->app['queue']->createPayloadUsing(function () { $this->app['queue']->createPayloadUsing(function () {
if (tenancy()->initialized) { if (tenancy()->initialized) {
$uuid = tenant('uuid'); [$uuid, $domain] = tenant()->get('uuid', 'domain');
return [ return [
'tenant_uuid' => $uuid, 'tenant_uuid' => $uuid,
'tags' => ["tenant:$uuid"], 'tags' => [
"tenant:$uuid",
"domain:$domain"
],
]; ];
} }