1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 11:34:03 +00:00

[2.x] Allow automatic seeding after automatic migrations (#160)

This commit is contained in:
Chris Brown 2019-10-17 13:25:30 -04:00 committed by Samuel Štancl
parent 3dbbbe8b24
commit d5b01219fd
4 changed files with 113 additions and 6 deletions

View file

@ -91,6 +91,10 @@ return [
'home_url' => '/app',
'queue_database_creation' => false,
'migrate_after_creation' => false, // run migrations after creating a tenant
'seed_after_migration' => false, // should the seeder run after automatic migration
'seeder_parameters' => [
'--class' => 'DatabaseSeeder', // root seeder class to run after automatic migrations, eg: 'DatabaseSeeder'
],
'queue_database_deletion' => false,
'delete_database_after_tenant_deletion' => false, // delete the tenant's database after deleting the tenant
'unique_id_generator' => Stancl\Tenancy\UniqueIDGenerators\UUIDGenerator::class,