Skip to content

Commit a34c4e8

Browse files
committed
fix: correct config path and component namespace in provider.stub
1 parent e25033c commit a34c4e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/stubs/scaffold/provider.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class $CLASS$ extends ServiceProvider
9999

100100
$key = ($config === 'config.php') ? $this->nameLower : implode('.', $normalized);
101101

102-
$this->publishes([$file->getPathname() => config_path($relativePath)], 'config');
102+
$this->publishes([$file->getPathname() => config_path($config)], 'config');
103103
$this->merge_config_from($file->getPathname(), $key);
104104
}
105105
}
@@ -129,7 +129,7 @@ class $CLASS$ extends ServiceProvider
129129

130130
$this->loadViewsFrom(array_merge($this->getPublishableViewPaths(), [$sourcePath]), $this->nameLower);
131131

132-
Blade::componentNamespace(config('modules.namespace').'\\' . $this->moduleName . '\\View\\Components', $this->moduleNameLower);
132+
Blade::componentNamespace(config('modules.namespace').'\\' . $this->name . '\\View\\Components', $this->nameLower);
133133
}
134134

135135
/**

0 commit comments

Comments
 (0)