get('jwt.key', ''); if (Str::startsWith($key, 'base64:')) { $key = base64_decode(substr($key, 7)); } return $key; } /** * Provide the signing algo to use for JWT. * * @return \Lcobucci\JWT\Signer */ public function getJWTSigner(): Signer { $class = config()->get('jwt.signer'); return new $class; } }