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:
parent
1ce18d2759
commit
0f9e0f33b0
3 changed files with 25 additions and 13 deletions
|
|
@ -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'],
|
||||
],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue