firebase/php-jwt:
public function encode()
{
$this->token = JWT::encode($this->payload, $this->key);
return $this;
}
public function decode()
{
$this->payload = JWT::decode($this->token, $this->key, array('HS256'));
return $this;
}
public function encode()
{
$this->token = JWT::encode($this->payload, $this->key);
return $this;
}
public function decode()
{
$this->payload = JWT::decode($this->token, $this->key, array('HS256'));
return $this;
}
2020-06-27
提醒一个,ResponseJson 这里面 使用了json_encode() 使用了中间件会报错, 改成 response()->json(); 就可以
2020-02-09