mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:14:04 +00:00
parent
82146b196a
commit
e363456497
1 changed files with 6 additions and 6 deletions
|
|
@ -43,6 +43,12 @@ class Seed extends SeedCommand
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
|
foreach (config('tenancy.seeder_parameters') as $parameter => $value) {
|
||||||
|
if (! $this->input->hasParameterOption($parameter)) {
|
||||||
|
$this->input->setOption(ltrim($parameter, '-'), $value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (! $this->confirmToProceed()) {
|
if (! $this->confirmToProceed()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -52,12 +58,6 @@ class Seed extends SeedCommand
|
||||||
|
|
||||||
$this->input->setOption('database', $tenant->getConnectionName());
|
$this->input->setOption('database', $tenant->getConnectionName());
|
||||||
|
|
||||||
foreach (config('tenancy.seeder_parameters') as $parameter => $value) {
|
|
||||||
if (! $this->input->hasParameterOption($parameter)) {
|
|
||||||
$this->input->setOption(ltrim($parameter, '-'), $value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$tenant->run(function () {
|
$tenant->run(function () {
|
||||||
// Seed
|
// Seed
|
||||||
parent::handle();
|
parent::handle();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue