Consider this code:
tokenArray = [
$this->me(),
'access_token' => $token,
'token_type' => 'bearer',
'expires_in' => auth()->factory()->getTTL() * 60,
];
and the output:
How can I have the properties in the userobject to be spread across in the $tokenArray?
Desired output: