Skip to content

Commit

Permalink
Fix missing application_path in Ignition reports
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist committed Sep 1, 2022
1 parent 00791d3 commit d4c3c44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/IgnitionServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ protected function registerFlare(): void
return Flare::make()
->setApiToken(config('flare.key') ?? '')
->setBaseUrl(config('flare.base_url', 'https://flareapp.io/api'))
->applicationPath(base_path())
->setStage(app()->environment())
->setContextProviderDetector(new LaravelContextProviderDetector())
->registerMiddleware($this->getFlareMiddleware())
Expand Down Expand Up @@ -147,7 +148,10 @@ protected function registerIgnition(): void

$this->app->singleton(SolutionProviderRepositoryContract::class, fn () => $solutionProviderRepository);

$this->app->singleton(Ignition::class, fn () => (new Ignition()));
$this->app->singleton(Ignition::class,
fn () => (new Ignition())
->applicationPath(base_path())
);
}

protected function registerRecorders(): void
Expand Down

0 comments on commit d4c3c44

Please sign in to comment.