laravel cashier webhook in production, how keep up the listener?

  laravel, laravel-cashier, stripe-payments

I just put my site in production, I use laravel cashier for payments with stripe and I need the webhooks, in local everything works great.

In production I need to run this command:
php artisan cashier:webhook

There is no service that stays on like the queue:worker and that I have to quit, there it just launches a command like if I create a controller for example, it quits directly.

My question is: if the server restarts, does it stay on or do I have to run the command again and manage it with a cron or supervisor like I could do for the queue:worker?

If you could help me a bit on the production of laravel cashier and the webhooks system it would be nice 🙂

(The doc is not precise on that : https://laravel.com/docs/8.x/billing#handling-stripe-webhooks)

Source: Laravel

Leave a Reply