Skip to content

Commit

Permalink
Merge pull request #62 from joserick/patch-1
Browse files Browse the repository at this point in the history
Fixed register service provider for L11
  • Loading branch information
butschster authored Apr 1, 2024
2 parents 6bedbf6 + 43086d3 commit 02f9781
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ protected function registerServiceProvider(): void
{
$namespace = Str::replaceLast('\\', '', $this->getLaravel()->getNamespace());

if (file_exists($this->getLaravel()->bootstrapPath('providers.php'))) {
// @phpstan-ignore-next-line
return ServiceProvider::addProviderToBootstrapFile("{$namespace}\\Providers\\MetaTagsServiceProvider");
}

/** @psalm-suppress UndefinedFunction */
$config = file_get_contents(config_path('app.php'));
$line = $namespace . '\Providers\MetaTagsServiceProvider::class';
Expand Down

0 comments on commit 02f9781

Please sign in to comment.