Skip to content

Commit 6ec5cbf

Browse files
committed
[fix] fix make plain module
1 parent 79cdb18 commit 6ec5cbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Generators/ModuleGenerator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ public function generate(): int
304304

305305
if ($this->type === 'plain') {
306306
$this->cleanModuleJsonFile();
307+
$this->module->resetModules();
307308
}
308309

309310
$this->activator->setActiveByName($name, $this->isActive);
@@ -489,7 +490,7 @@ protected function getReplacement($stub): array
489490
if (method_exists($this, $method = 'get'.ucfirst(Str::studly(strtolower($key))).'Replacement')) {
490491
$replace = $this->$method();
491492

492-
if($stub === 'routes/web' || $stub === 'routes/api' ){
493+
if ($stub === 'routes/web' || $stub === 'routes/api') {
493494
$replace = str_replace('\\\\', '\\', $replace);
494495
}
495496

0 commit comments

Comments
 (0)