mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 11:34:03 +00:00
DatabasePreparationTest
This commit is contained in:
parent
86a98b2bc8
commit
3c4d2189dc
4 changed files with 148 additions and 25 deletions
|
|
@ -201,7 +201,7 @@ return [
|
|||
* See the documentation page for each class to
|
||||
* understand which ones you want to enable.
|
||||
*/
|
||||
'features' => [
|
||||
'features' => [ // todo test features
|
||||
// Stancl\Tenancy\Features\Timestamps::class, // https://tenancy.samuelstancl.me/docs/v2/features/timestamps/
|
||||
// Stancl\Tenancy\Features\TenantConfig::class, // https://tenancy.samuelstancl.me/docs/v2/features/tenant-config/
|
||||
// Stancl\Tenancy\Features\TelescopeTags::class, // https://tenancy.samuelstancl.me/docs/v2/telescope/
|
||||
|
|
@ -211,32 +211,15 @@ return [
|
|||
/**
|
||||
* The URL to which users will be redirected when they try to acceess a central route on a tenant domain.
|
||||
*/
|
||||
'home_url' => '/app',
|
||||
|
||||
/**
|
||||
* Should tenant databases be created asynchronously in a queued job.
|
||||
*/
|
||||
'queue_database_creation' => false, // todo make this a static property
|
||||
'home_url' => '/app', // todo move this to static
|
||||
|
||||
'migration_parameters' => [
|
||||
'--force' => true, // Set this to true to be able to run migrations in production
|
||||
// '--path' => [database_path('migrations/tenant')], // If you need to customize paths to tenant migrations
|
||||
'--path' => [database_path('migrations/tenant')],
|
||||
],
|
||||
|
||||
'seeder_parameters' => [
|
||||
'--class' => 'DatabaseSeeder', // root seeder class, e.g.: 'DatabaseSeeder'
|
||||
// '--force' => true,
|
||||
],
|
||||
|
||||
/**
|
||||
* Should tenant databases be deleted asynchronously in a queued job.
|
||||
*/
|
||||
'queue_database_deletion' => false,
|
||||
|
||||
/**
|
||||
* Middleware pushed to the global middleware stack.
|
||||
*/
|
||||
'global_middleware' => [ // todo get rid of this
|
||||
// Stancl\Tenancy\Middleware\InitializeTenancy::class,
|
||||
],
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue