Skip to content

Commit c741397

Browse files
authored
Merge pull request #140 from gaetan-hexadog/feat-provider-in-subfolder
Update InstallCommand.php
2 parents 3674a5e + 9d3fcbd commit c741397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/InstallCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ protected function copyServiceProviderInApp(): self
168168
$appConfig = file_get_contents(base_path('bootstrap/providers.php'));
169169
}
170170

171-
$class = '\\Providers\\' . $providerName . '::class';
171+
$class = '\\Providers\\' . Str::replace('/', '\\', $providerName) . '::class';
172172

173173
if (Str::contains($appConfig, $namespace . $class)) {
174174
return $this;

0 commit comments

Comments
 (0)