mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 03:34:03 +00:00
Improve comment
This commit is contained in:
parent
ac6bf3651a
commit
5b07afcc33
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ trait BelongsToTenant
|
||||||
|
|
||||||
public static function bootBelongsToTenant(): void
|
public static function bootBelongsToTenant(): void
|
||||||
{
|
{
|
||||||
// The queries performed for models present in the tenancy.models.rls are scoped using Postgres RLS instead of the global scope
|
// Queries of models present in the tenancy.models.rls config are scoped using Postgres RLS instead of the global scope
|
||||||
if (! in_array(static::class, config('tenancy.models.rls'))) {
|
if (! in_array(static::class, config('tenancy.models.rls'))) {
|
||||||
static::addGlobalScope(new TenantScope);
|
static::addGlobalScope(new TenantScope);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue