diff --git a/src/IgnitionServiceProvider.php b/src/IgnitionServiceProvider.php index 73cbdbee..431fc591 100644 --- a/src/IgnitionServiceProvider.php +++ b/src/IgnitionServiceProvider.php @@ -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()) @@ -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