We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5cd905 commit 3c28bb3Copy full SHA for 3c28bb3
src/Facade/Pigeon.php
@@ -19,7 +19,7 @@ class Pigeon extends Facade
19
{
20
public static function fake(): PigeonFake
21
22
- static::swap(new PigeonFake(static::$app));
+ static::swap(app('pigeon-fake'));
23
24
return self::getFacadeRoot();
25
}
src/PigeonServiceProvider.php
@@ -2,6 +2,7 @@
2
3
namespace Convenia\Pigeon;
4
5
+use Convenia\Pigeon\Support\Testing\PigeonFake;
6
use Illuminate\Support\ServiceProvider;
7
8
/**
@@ -32,6 +33,10 @@ public function register(): void
32
33
return new PigeonManager($app);
34
});
35
36
+ $this->app->singleton('pigeon-fake', static function ($app) {
37
+ return new PigeonFake($app);
38
+ });
39
+
40
$this->mergeConfigFrom(
41
$this->configPath(),
42
'pigeon'
0 commit comments