Skip to content

Commit

Permalink
Merge pull request #140 from gaetan-hexadog/feat-provider-in-subfolder
Browse files Browse the repository at this point in the history
Update InstallCommand.php
  • Loading branch information
freekmurze authored Aug 27, 2024
2 parents 3674a5e + 9d3fcbd commit c741397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ protected function copyServiceProviderInApp(): self
$appConfig = file_get_contents(base_path('bootstrap/providers.php'));
}

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

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

0 comments on commit c741397

Please sign in to comment.