Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Webhook Client to Support Multiple HTTP Methods for Receiving Requests #192

Merged
merged 5 commits into from
Aug 9, 2023

Conversation

emrancu
Copy link
Contributor

@emrancu emrancu commented Jul 6, 2023

Currently, the package only supports the 'POST' method for receiving webhook requests. However, it would be beneficial to extend this functionality to handle requests with any method, such as 'GET', 'PUT', and more.

One specific use case we encountered was when working with ElasticMail. They send webhook requests using the 'GET' method, which is not currently supported by the package. To ensure compatibility with ElasticMail and other services that utilize different HTTP methods, we need to enhance the webhook client to handle these requests appropriately.

@emrancu emrancu changed the title Add support for dynamic Route method Enhance Webhook Client to Support Multiple HTTP Methods for Receiving Requests Jul 6, 2023
@freekmurze
Copy link
Member

The tests are failing could you take a look?

@emrancu
Copy link
Contributor Author

emrancu commented Aug 6, 2023

Ok I will check soon.

@emrancu
Copy link
Contributor Author

emrancu commented Aug 6, 2023

Hello @freekmurze ,
I have fixed the issue. Please check now.
image

@freekmurze
Copy link
Member

That looks good 👍

Could you also update the readme with a nice example on how to use this new feature?

@emrancu
Copy link
Contributor Author

emrancu commented Aug 7, 2023

I have updated the readme.

@freekmurze freekmurze merged commit e2e5e0d into spatie:main Aug 9, 2023
@freekmurze
Copy link
Member

Thanks!

@emrancu
Copy link
Contributor Author

emrancu commented Aug 10, 2023

Thank you so much ❤️

Currently we are working with override.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants