diff --git a/src/Generators/ModuleGenerator.php b/src/Generators/ModuleGenerator.php index 1972c9bd..ac831320 100644 --- a/src/Generators/ModuleGenerator.php +++ b/src/Generators/ModuleGenerator.php @@ -304,6 +304,7 @@ public function generate(): int if ($this->type === 'plain') { $this->cleanModuleJsonFile(); + $this->module->resetModules(); } $this->activator->setActiveByName($name, $this->isActive); @@ -489,7 +490,7 @@ protected function getReplacement($stub): array if (method_exists($this, $method = 'get'.ucfirst(Str::studly(strtolower($key))).'Replacement')) { $replace = $this->$method(); - if($stub === 'routes/web' || $stub === 'routes/api' ){ + if ($stub === 'routes/web' || $stub === 'routes/api') { $replace = str_replace('\\\\', '\\', $replace); }