diff --git a/composer.json b/composer.json index 5360c48e..b4a4441e 100644 --- a/composer.json +++ b/composer.json @@ -33,6 +33,7 @@ "moneyphp/money": "^4.0", "nesbot/carbon": "^2.0|^3.0", "stripe/stripe-php": "^13.0", + "symfony/console": "^6.0|^7.0", "symfony/http-kernel": "^6.0|^7.0", "symfony/polyfill-intl-icu": "^1.22.1" }, diff --git a/src/Console/WebhookCommand.php b/src/Console/WebhookCommand.php index 5a54da9c..e695ff8f 100644 --- a/src/Console/WebhookCommand.php +++ b/src/Console/WebhookCommand.php @@ -4,7 +4,9 @@ use Illuminate\Console\Command; use Laravel\Cashier\Cashier; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'cashier:webhook')] class WebhookCommand extends Command { public const DEFAULT_EVENTS = [