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
代碼優(yōu)化那塊有問題,你的構(gòu)造函數(shù)獲取不到uid,你緩存取不出數(shù)據(jù)的
2020-05-14
提醒一個(gè),ResponseJson 這里面 使用了json_encode() 使用了中間件會(huì)報(bào)錯(cuò), 改成 response()->json(); 就可以
2020-02-09