for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace xiaodi\JWTAuth;
use think\App;
class User
{
private $inject = true;
private $model;
public function __construct()
$config = $this->getConfig();
foreach ($config as $key => $v) {
$this->$key = $v;
}
public function getConfig()
return $this->app->config->get('jwt.user', []);
app
xiaodi\JWTAuth\User
public function hasInject()
return $this->inject;
public function getModel()
return $this->model;