mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 02:04: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:
commit
95eb49a3d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue