laravel jwt 退出登录

匿名 (未验证) 提交于 2018-05-25 01:28:36
     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');


    }