Guard 未设置抛出异常
This commit is contained in:
parent
5b43786432
commit
1644076abe
@ -173,6 +173,10 @@ class CatchAuth
|
|||||||
*/
|
*/
|
||||||
protected function getProvider()
|
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']];
|
return $this->auth['providers'][$this->auth['guards'][$this->guard]['provider']];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user