mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:54:04 +00:00
Use seeder params in tenants:seed instead of just the automatic seeder (#317)
* Use seeder params in tenants:seed instead of just the automatic seeder * Left trim - from option names * Use no seeder params for tests
This commit is contained in:
parent
776af4643c
commit
526f0826a4
5 changed files with 10 additions and 9 deletions
|
|
@ -86,11 +86,11 @@ class TenantManager
|
|||
|
||||
if ($this->shouldSeedAfterMigration()) {
|
||||
$afterCreating[] = $this->databaseCreationQueued()
|
||||
? new QueuedTenantDatabaseSeeder($tenant, $this->getSeederParameters())
|
||||
? new QueuedTenantDatabaseSeeder($tenant)
|
||||
: function () use ($tenant) {
|
||||
$this->artisan->call('tenants:seed', [
|
||||
'--tenants' => [$tenant['id']],
|
||||
] + $this->getSeederParameters());
|
||||
]);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue