We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PestPluginHttpRecorder
1 parent 04ca44a commit 7bd0fecCopy full SHA for 7bd0fec
src/LaravelNotionApiServiceProvider.php
@@ -3,6 +3,7 @@
3
namespace FiveamCode\LaravelNotionApi;
4
5
use Illuminate\Support\ServiceProvider;
6
+use FiveamCode\LaravelNotionApi\Tests\Plugins\PestPluginHttpRecorder;
7
8
/**
9
* Class LaravelNotionApiServiceProvider.
@@ -32,5 +33,9 @@ public function register()
32
33
$this->app->singleton(Notion::class, function () {
34
return new Notion(config('laravel-notion-api.notion-api-token'), config('laravel-notion-api.version'));
35
});
36
+
37
+ if ($this->app->runningInConsole()) {
38
+ PestPluginHttpRecorder::register();
39
+ }
40
}
41
0 commit comments