Skip to content

Commit

Permalink
[fix] fix make plain module
Browse files Browse the repository at this point in the history
  • Loading branch information
alissn committed Dec 6, 2024
1 parent 79cdb18 commit 6ec5cbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Generators/ModuleGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ public function generate(): int

if ($this->type === 'plain') {
$this->cleanModuleJsonFile();
$this->module->resetModules();
}

$this->activator->setActiveByName($name, $this->isActive);
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 6ec5cbf

Please sign in to comment.