I am using Laravel Passport and I would like to know if it is possible to add custom data to the Laravel\Passport\Token:
//This is how I create the token
$user = $request->user();
$token = $user->createToken('ACCESS_TOKEN')->accessToken;
I send the token to the API with the header Authorization: Bearer ${token}
Is there any way I can add custom information to the token? Something like this:
$token->customField = 'custom value';
$value = $request->user()->token()->customField;
I've read the Passport Docs but there is no info about that.