argument('product'))->firstOrFail(); [$l,$key] = $issuer->issue($p, $this->option('name') ?: null, $this->option('email') ?: null); if (! $key) { $this->warn('Licence already existed; plaintext key is intentionally not recoverable.'); return self::FAILURE; } $this->line('Licence ID: '.$l->id); $this->line('Licence key: '.$key); $this->warn('This is the only time the plaintext key is shown.'); return self::SUCCESS; } }