Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.x] Improves console output #1401

Merged
merged 2 commits into from
Jul 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.');
}
}
}