mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 16:14:03 +00:00
[2.1.0] Allow automatic seeding after automatic migrations
Fixes #158 If config('tenancy.seeder_class') is null or a blank string, the seeder-class parameter is not passed, and therefore Laravel's default option of calling 'DatabaseSeeder' will occur. As with Laravel's normal seeding process, the class is treated as the "root" seeder class, which can call other seeder classes in turn.
This commit is contained in:
parent
58fbdd5281
commit
7e2eed88da
3 changed files with 69 additions and 0 deletions
|
|
@ -91,6 +91,8 @@ 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_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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue