I’m using laravel 9 with passport and when creating a token I use this code:
$user = User::create($data);
$token = $user->createToken('Token Name')->accessToken;
but it only creates a token.
I searched how to create a refresh token as well, but it is only be possible with HTTP request. Is there another way to create a refresh token along an access token?