laravel jwt 退出登录

     public function exit_logon(Request $request) 
    {


        // JWTAuth::invalidate(JWTAuth::getToken());
         // $cookie= UserService.logout().$promise.then(function() {
         //        $cookieStore.remove('CG_TK');
               
         //    });


       JWTAuth::invalidate(JWTAuth::getToken('CG_TK'));
        $data['status']="1";
        return $this->responseSuccess($data,'request_success');


    }

你可能感兴趣的:(laravel jwt 退出登录)