Guard 未设置抛出异常

This commit is contained in:
JaguarJack 2020-07-13 09:03:59 +08:00
parent 5b43786432
commit 1644076abe

View File

@ -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']];
}