Show user info as well

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-06-28 22:06:46 -07:00
parent 112f147596
commit e7de7d1716

View file

@ -71,6 +71,7 @@ class GeneratePersonalAccessToken extends Command
$this->info($user->createToken($accessTokenName)->accessToken);
} else {
$this->warn('Your API Token has been created. Be sure to copy this token now, as it will not be accessible again.');
$this->info('API Token User: '.$user->present()->fullName.' ('.$user->username.')');
$this->info('API Token Name: '.$accessTokenName);
$this->info('API Token: '.$user->createToken($accessTokenName)->accessToken);
}