protected function JWTRegister() { // 绑定实例(JWT中已为单例模式) $this->app->instance('jwt', JWT::getInstance()); }
function jwt() { // API: JSON WEB TOKEN return \Alp\Api\JWT\JWT::getInstance(); }