/** * Execute the console command. * * @return mixed */ public function handle() { $attributes = ['id' => $this->option('id') ?: SecureKey::generate(), 'secret' => $this->option('secret') ?: SecureKey::generate(), 'name' => $this->argument('name'), 'redirect_uri' => $this->argument('redirect-uri')]; $newClient = Client::create($attributes); $this->info("Your new client has been created!"); $this->info(sprintf("Client name : %s", $newClient->getName())); $this->info(sprintf("Client ID : %s", $newClient->getId())); $this->info(sprintf("Client secret : %s", $newClient->getSecret())); $this->info(sprintf("Client URI : %s", $newClient->getRedirectUri())); }