generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance Webhook Client to Support Multiple HTTP Methods for Receiving…
… Requests (#192) * Add support for Route method dynamic * add method validation & Invalid Exception class * Remove validatedMethod and add method validation in packageBooted * Added default webhook route method to options * Update README.md --------- Co-authored-by: Freek Van der Herten <[email protected]>
- Loading branch information
1 parent
744dc34
commit e2e5e0d
Showing
3 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace Spatie\WebhookClient\Exceptions; | ||
|
||
use Exception; | ||
|
||
class InvalidMethod extends Exception | ||
{ | ||
public static function make($method): self | ||
{ | ||
return new static("The method $method is not allowed."); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters