diff --git a/src/Console/ClientCommand.php b/src/Console/ClientCommand.php
index f51a6b08f..f645cf613 100644
--- a/src/Console/ClientCommand.php
+++ b/src/Console/ClientCommand.php
@@ -5,6 +5,7 @@
use Illuminate\Console\Command;
use Laravel\Passport\Client;
use Laravel\Passport\ClientRepository;
+use Laravel\Passport\Passport;
class ClientCommand extends Command
{
@@ -161,6 +162,11 @@ protected function createAuthCodeClient(ClientRepository $clients)
*/
protected function outputClientDetails(Client $client)
{
+ if (Passport::$hashesClientSecrets) {
+ $this->line('Here is your new client secret. This is the only time it will be shown so don\'t lose it!');
+ $this->line('');
+ }
+
$this->line('Client ID: '.$client->id);
$this->line('Client secret: '.$client->plainSecret);
}