📅  最后修改于: 2022-03-11 14:54:40.886000             🧑  作者: Mango
$authorizationHeader = $request->headers->get('Authorization');
$authorizationHeaderArray = explode(' ', $authorizationHeader);
$token = $authorizationHeaderArray[1] ?? null;
$jwtToken = $this->JWTEncoder->decode($token);
dd($jwtToken);