diff --git a/src/Guards/AuthenticationGuard.php b/src/Guards/AuthenticationGuard.php index dc362f7..ceea851 100644 --- a/src/Guards/AuthenticationGuard.php +++ b/src/Guards/AuthenticationGuard.php @@ -283,7 +283,7 @@ public function user(): ?Authenticatable * @var ?Authenticatable $lastResponse */ // @codeCoverageIgnoreStart - if (class_exists('\Laravel\Telescope\Telescope')) { + if (class_exists('\Laravel\Telescope\Telescope') && true === config('telescope.enabled')) { static $depth = 0; static $lastCalled = null;