예제 #1
0
 protected function JWTRegister()
 {
     // 绑定实例(JWT中已为单例模式)
     $this->app->instance('jwt', JWT::getInstance());
 }
예제 #2
0
파일: helpers.php 프로젝트: alpfish/alp
 function jwt()
 {
     // API: JSON WEB TOKEN
     return \Alp\Api\JWT\JWT::getInstance();
 }