1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 18:54:03 +00:00

Add config('tenancy.database.rls')

This commit is contained in:
lukinovec 2023-06-05 16:33:26 +02:00
parent cb775a9fba
commit bad5c693ab
2 changed files with 9 additions and 6 deletions

View file

@ -10,10 +10,6 @@ return [
* Configuration for the models used by Tenancy.
*/
'models' => [
'rls' => [
// The tenants:create-rls-policies comand will create RLS policies
// For tables of the models specified here
],
'tenant' => Stancl\Tenancy\Database\Models\Tenant::class,
'domain' => Stancl\Tenancy\Database\Models\Domain::class,
@ -179,6 +175,13 @@ return [
// todo docblock
'drop_tenant_databases_on_migrate_fresh' => false,
/**
* Scope tenant models using RLS.
*
* Requires Postgres with single-database tenancy.
*/
'rls' => false,
],
/**