mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 19:24:02 +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
|
||||
{
|
||||
// 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'))) {
|
||||
static::addGlobalScope(new TenantScope);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue