File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1111 "require" : {
1212 "php" : " >=7.4.0" ,
1313 "laravel/framework" : " ^8.56" ,
14- "laravel/sanctum" : " ^2.11"
14+ "laravel/sanctum" : " ^2.11" ,
15+ "yangjisen/laravel-cache-provider" : " ^3.0"
1516 },
1617 "autoload" : {
1718 "psr-4" : {
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ protected function publishConfig()
2424 $ this ->call ('vendor:publish ' , [
2525 '--provider ' => 'Jason\Api\ApiServiceProvider ' ,
2626 ]);
27+ $ this ->call ('vendor:publish ' , [
28+ '--provider ' => 'YangJiSen\CacheUserProvider\ServiceProvider ' ,
29+ ]);
2730 $ this ->call ('migrate ' );
2831 }
2932
Original file line number Diff line number Diff line change @@ -9,4 +9,5 @@ class Controller extends BaseController
99{
1010
1111 use ApiResponse;
12+
1213}
Original file line number Diff line number Diff line change 55class LoginListener
66{
77
8+ /**
9+ * Notes : 登录成功后,自动删除原有的token
10+ * 这样大概能做到单点登录的效果
11+ * @Date : 2021/8/27 9:40 上午
12+ * @Author : <Jason.C>
13+ * @param $event
14+ */
815 public function handle ($ event )
916 {
1017 if (config ('api.token_auto_revoke ' )) {
You can’t perform that action at this time.
0 commit comments