I'm trying to extend the WebhookController of the laravel/cashier package and listen to some events that were not included in the default events. But when I tried to test a webhook call from the Stripe Dashboard it returns the error below:
<b>Fatal error</b>: Trait 'Illuminate\Foundation\Events\Dispatchable' not found in <b>/var/www/html/vendor/laravel/cashier/src/Events/WebhookReceived.php</b> on line <b>8</b><br />
<!-- Trait 'Illuminate\Foundation\Events\Dispatchable' not found (500 Internal Server Error) -->
It seems it's looking for the Dispatchable trait on the Lumen Framework
Steps To Reproduce:
Add the webhook URL on the stripe dashboard
Try to send some test webhooks and check the response.
Description:
Hi there,
I'm trying to extend the WebhookController of the laravel/cashier package and listen to some events that were not included in the default events. But when I tried to test a webhook call from the Stripe Dashboard it returns the error below:
It seems it's looking for the
Dispatchable
trait on the Lumen FrameworkSteps To Reproduce: