// +---------------------------------------------------------------------- namespace mall\library\tools\jwt; use Lcobucci\JWT\Configuration; use Lcobucci\JWT\Signer\Hmac\Sha256; use Lcobucci\JWT\Signer\Key\InMemory; class Config { public static function get(){ return Configuration::forSymmetricSigner( new Sha256(), InMemory::base64Encoded(env('jwt.encryption')) ); } }