mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 20:54:03 +00:00
* Add the option to set values & db name during tenant creation * Apply fixes from StyleCI * Add tests * Apply fixes from StyleCI * Rewrite conditional for clarity
47 lines
1.4 KiB
PHP
47 lines
1.4 KiB
PHP
<?php
|
|
|
|
return [
|
|
'storage_driver' => 'Stancl\Tenancy\StorageDrivers\RedisStorageDriver',
|
|
'tenant_route_namespace' => 'App\Http\Controllers',
|
|
'exempt_domains' => [
|
|
// 'localhost',
|
|
],
|
|
'database' => [
|
|
'based_on' => 'mysql',
|
|
'prefix' => 'tenant',
|
|
'suffix' => '',
|
|
],
|
|
'redis' => [
|
|
'tenancy' => false,
|
|
'prefix_base' => 'tenant',
|
|
'prefixed_connections' => [
|
|
'default',
|
|
'cache',
|
|
],
|
|
],
|
|
'cache' => [
|
|
'tag_base' => 'tenant',
|
|
],
|
|
'filesystem' => [
|
|
'suffix_base' => 'tenant',
|
|
// Disks which should be suffixed with the suffix_base + tenant UUID.
|
|
'disks' => [
|
|
'local',
|
|
'public',
|
|
// 's3',
|
|
],
|
|
'root_override' => [
|
|
// Disks whose roots should be overriden after storage_path() is suffixed.
|
|
'local' => '%storage_path%/app/',
|
|
'public' => '%storage_path%/app/public/',
|
|
],
|
|
],
|
|
'database_managers' => [
|
|
'sqlite' => 'Stancl\Tenancy\TenantDatabaseManagers\SQLiteDatabaseManager',
|
|
'mysql' => 'Stancl\Tenancy\TenantDatabaseManagers\MySQLDatabaseManager',
|
|
'pgsql' => 'Stancl\Tenancy\TenantDatabaseManagers\PostgreSQLDatabaseManager',
|
|
],
|
|
'queue_database_creation' => false,
|
|
'queue_database_deletion' => false,
|
|
'database_name_key' => null,
|
|
];
|