1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-06 02:24:04 +00:00

Merge branch 'stein-j-readied-tenant' of https://github.com/archtechx/tenancy into stein-j-readied-tenant

This commit is contained in:
lukinovec 2022-07-22 15:23:12 +02:00
commit 95eb49a3d3

View file

@ -27,7 +27,7 @@ trait HasTenantOptions
->when($this->option('tenants'), function ($query) { ->when($this->option('tenants'), function ($query) {
$query->whereIn(tenancy()->model()->getTenantKeyName(), $this->option('tenants')); $query->whereIn(tenancy()->model()->getTenantKeyName(), $this->option('tenants'));
}) })
->when(tenancy()->model()::hasGlobalScope(PendingScope::class), function($query) { ->when(tenancy()->model()::hasGlobalScope(PendingScope::class), function ($query) {
$query->withPending($this->option('with-pending')); $query->withPending($this->option('with-pending'));
}) })
->cursor(); ->cursor();