Skip to content

Commit

Permalink
[14.x] Improves console output (#1401)
Browse files Browse the repository at this point in the history
* Improves console output

* Fixes required version of PHPUnit
  • Loading branch information
nunomaduro authored Jul 20, 2022
1 parent 3a2aa8e commit 3b62552
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@
"require": {
"php": "^8.0",
"ext-json": "*",
"illuminate/console": "^9.0",
"illuminate/contracts": "^9.0",
"illuminate/database": "^9.0",
"illuminate/http": "^9.0",
"illuminate/log": "^9.0",
"illuminate/notifications": "^9.0",
"illuminate/routing": "^9.0",
"illuminate/support": "^9.0",
"illuminate/view": "^9.0",
"illuminate/console": "^9.21",
"illuminate/contracts": "^9.21",
"illuminate/database": "^9.21",
"illuminate/http": "^9.21",
"illuminate/log": "^9.21",
"illuminate/notifications": "^9.21",
"illuminate/routing": "^9.21",
"illuminate/support": "^9.21",
"illuminate/view": "^9.21",
"moneyphp/money": "^3.2|^4.0",
"nesbot/carbon": "^2.0",
"stripe/stripe-php": "^7.39|^8.0",
Expand Down
4 changes: 2 additions & 2 deletions src/Console/WebhookCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ public function handle()
'api_version' => $this->option('api-version') ?? Cashier::STRIPE_VERSION,
]);

$this->info('The Stripe webhook was created successfully. Retrieve the webhook secret in your Stripe dashboard and define it as an environment variable.');
$this->components->info('The Stripe webhook was created successfully. Retrieve the webhook secret in your Stripe dashboard and define it as an environment variable.');

if ($this->option('disabled')) {
$endpoint->update($endpoint->id, ['disabled' => true]);

$this->info('The Stripe webhook was disabled as requested. You may enable the webhook via the Stripe dashboard when needed.');
$this->components->info('The Stripe webhook was disabled as requested. You may enable the webhook via the Stripe dashboard when needed.');
}
}
}

0 comments on commit 3b62552

Please sign in to comment.