diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 0147107d..e75967dd 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -101,7 +101,7 @@ public function boot() ]); }); - if ($app->runningInConsole() || $app->runningUnitTests()) { + if ($app->runningInConsole() || $app->environment('testing')) { return; }