Skip to content

Commit a708dc7

Browse files
committed
logtou
1 parent 00276ad commit a708dc7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Factory.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,18 @@ public function guest(): bool
112112
{
113113
return $this->app['auth']->guest();
114114
}
115+
116+
/**
117+
* Notes : 退出登录.
118+
*
119+
* @Date : 2022/9/20 14:02
120+
* @Author : <Jason.C>
121+
*
122+
* @return bool
123+
*/
124+
public function logout(): bool
125+
{
126+
event(new Authenticated($this->app['auth']->user()));
127+
return true;
128+
}
115129
}

0 commit comments

Comments
 (0)