Working in Laravel 5.8, setting up subscriptions using Cashier and Stripe. Have setup my webhook endpoint and configured it on the Stripe side. When I send a test webhook, I get this error in my log:
[2021-11-03 21:59:33] local.ERROR: Class name must be a valid object or a string {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Class name must be a valid object or a string at /opt/bitnami/frameworks/laravel/vendor/laravel/cashier/src/Cashier.php:69)
Have tried clearing the config cache with artisan. Also tried declaring the cashier model in my .env file. Neither worked.
I also added the CSRF token exception, and added my Stripe webhook secret to the .env. The way I understand the docs, Cashier should handle these webhooks out of the box.