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