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

Move Postgres user permissions to config

This commit is contained in:
lukinovec 2023-06-15 13:03:44 +02:00
parent 1ce18d2759
commit 0f9e0f33b0
3 changed files with 25 additions and 13 deletions

View file

@ -175,16 +175,31 @@ return [
// todo docblock
'drop_tenant_databases_on_migrate_fresh' => false,
/**
* Scope tenant models using RLS.
*
* Requires Postgres with single-database tenancy.
*/
],
/**
* Requires Postgres with single-database tenancy.
*/
'rls' => [
/**
* Scope tenant models using RLS.
*/
'enabled' => false,
/**
* Permissions to grant to the tenant Postgres users.
*
* By default, all permissions are granted.
*
* @see Stancl\Tenancy\Jobs\CreatePostgresUserForTenant
*/
'user_permissions' => ['ALL'],
/**
* Directories in which Tenancy will discover your models.
*
* @see Stancl\Tenancy\Commands\CreateRLSPoliciesForTenantTables
*/
'model_directories' => ['app/Models'],
],