spatie / laravel-webhook-client

Receive webhooks in Laravel apps
https://freek.dev/1383-sending-and-receiving-webhooks-in-laravel-apps
MIT License
1k stars 147 forks source link

Return the Route object for method chaining #114

Closed erikwittek closed 2 years ago

erikwittek commented 3 years ago

In Version 2 the macro returned the Route object, for example you could add a middleware:

Route::webhooks('example')->middleware('auth.webhook');

This breaks with the update to v3. Simply returning the Object again solves this issue.

freekmurze commented 2 years ago

Thanks!