mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 18:04:03 +00:00
Don't override CLI params in tenants:seed (fixes #329)
This commit is contained in:
parent
df99e3e711
commit
61785128a8
1 changed files with 3 additions and 1 deletions
|
|
@ -53,7 +53,9 @@ class Seed extends SeedCommand
|
|||
$this->input->setOption('database', $tenant->getConnectionName());
|
||||
|
||||
foreach (config('tenancy.seeder_parameters') as $parameter => $value) {
|
||||
$this->input->setOption(ltrim($parameter, '-'), $value);
|
||||
if (! $this->input->hasParameterOption($parameter)) {
|
||||
$this->input->setOption(ltrim($parameter, '-'), $value);
|
||||
}
|
||||
}
|
||||
|
||||
$tenant->run(function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue