diff --git a/extend/catcher/CatchAuth.php b/extend/catcher/CatchAuth.php index 60fce14..7ce8d62 100644 --- a/extend/catcher/CatchAuth.php +++ b/extend/catcher/CatchAuth.php @@ -173,6 +173,10 @@ class CatchAuth */ protected function getProvider() { + if (!isset($this->auth['guards'][$this->guard])) { + throw new FailedException('Auth Guard Not Found'); + } + return $this->auth['providers'][$this->auth['guards'][$this->guard]['provider']]; }