我正在尝试使用中间件将access_token
设置为标头,我已经能够设置会话并使用
session(['key' => $con]);
$request->session()->get('key');
{ "token_type":"Bearer", "expires_in":31536000, "access_token":"eyJ0eXKV1QiLCJhbGc", "refresh_token":"nTnUjx7xC6dXMTal2DqQDz8pfYc=" }
但我似乎无法获得会话对象中的任何属性
$access = $request->session()->get('key');
$access->token_type //Trying to get property of non-object`enter code here`