mvdnbrk / laravel-postmark-webhooks Goto Github PK
View Code? Open in Web Editor NEWHandle Postmark webhooks in a Laravel application.
License: MIT License
Handle Postmark webhooks in a Laravel application.
License: MIT License
Hi, I have the need to put the webhook route in a different middleware group than api
. Do you have a recommended way of doing this, other than me having to write my own service provider?
Thanks!
~Mike
Hey - thanks for this package I've been using it flawlessly for sometime now.
I've just come to upgrade to L9 from L8 and I have a conflict issue in composer:
laravel/framework replaces illuminate/support and thus cannot coexist with it.
Are there any plans to support L9 with this package? or are you open to PR's or should I migrate away from this package if its no longer maintained?
Thanks a mil
Alex
Hi, thank you for the package!
I'm testing the package with a ngrok host directly from the Postmark Webhook interface and i receive the 401 error code.
Maybe it will be a good idea to have the IP addresses from your PostmarkIpsWhitelist in the config file, to have the possiblity to override this adresses.
Thank you! :)
Whatever I try to do, I always get this error:
Ps. I'm using the Postmarkapp webhook test function.
[2023-08-14 06:44:15] staging.ERROR: Undefined array key 1 {"exception":"[object] (ErrorException(code: 0): Undefined array key 1 at /home/ploi//vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:436)
[stacktrace]
#0 /home/ploi//vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(436): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /home/ploi//vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(422): Illuminate\Events\Dispatcher->createClassCallable()
#2 /home/ploi//vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(249): Illuminate\Events\Dispatcher->Illuminate\Events\{closure}()
#3 /home/ploi//vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(450): Illuminate\Events\Dispatcher->dispatch()
#4 /home/ploi//vendor/mvdnbrk/laravel-postmark-webhooks/src/Http/Controllers/StorePostmarkWebhookController.php(24): event()
#5 /home/ploi//vendor/laravel/framework/src/Illuminate/Support/helpers.php(263): Mvdnbrk\PostmarkWebhooks\Http\Controllers\StorePostmarkWebhookController->Mvdnbrk\PostmarkWebhooks\Http\Controllers\{closure}()
#6 /home/ploi//vendor/mvdnbrk/laravel-postmark-webhooks/src/Http/Controllers/StorePostmarkWebhookController.php(18): tap()
#7 /home/ploi//vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Mvdnbrk\PostmarkWebhooks\Http\Controllers\StorePostmarkWebhookController->__invoke()
#8 /home/ploi//vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction()
#9 /home/ploi//vendor/laravel/framework/src/Illuminate/Routing/Route.php(261): Illuminate\Routing\ControllerDispatcher->dispatch()
#10 /home/ploi//vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#11 /home/ploi//vendor/laravel/framework/src/Illuminate/Routing/Router.php(721): Illuminate\Routing\Route->run()
#12 /home/ploi//vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Routing\Router->Illuminate\Routing\{closure}()
#13 /home/ploi//vendor/mvdnbrk/laravel-postmark-webhooks/src/Http/Middleware/PostmarkIpsWhitelist.php(34): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#14 /home/ploi//vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Mvdnbrk\PostmarkWebhooks\Http\Middleware\PostmarkIpsWhitelist->handle()
#15 /home/ploi//vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#16 /home/ploi//vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Routing\Middleware\SubstituteBindings->handle()
#17 /home/ploi//vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(127): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#18 /home/ploi//vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(93): Illuminate\Routing\Middleware\ThrottleRequests->handleRequest()
#19 /home/ploi//vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(55): Illuminate\Routing\Middleware\ThrottleRequests->handleRequestUsingNamedLimiter()
#20 /home/ploi//vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Routing\Middleware\ThrottleRequests->handle()
#21 /home/ploi//vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#22 /home/ploi//vendor/laravel/framework/src/Illuminate/Routing/Router.php(719): Illuminate\Pipeline\Pipeline->then()
#23 /home/ploi//vendor/laravel/framework/src/Illuminate/Routing/Router.php(698): Illuminate\Routing\Router->runRouteWithinStack()
#24 /home/ploi//vendor/laravel/framework/src/Illuminate/Routing/Router.php(662): Illuminate\Routing\Router->runRoute()
#25 /home/ploi//vendor/laravel/framework/src/Illuminate/Routing/Router.php(651): Illuminate\Routing\Router->dispatchToRoute()
#26 /home/ploi//vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(167): Illuminate\Routing\Router->dispatch()
#27 /home/ploi//vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}()
#28 /home/ploi//vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#29 /home/ploi//vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
#30 /home/ploi//vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()
#31 /home/ploi//vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#32 /home/ploi//vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
#33 /home/ploi//vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\TrimStrings->handle()
#34 /home/ploi//vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#35 /home/ploi//vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()
#36 /home/ploi//vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#37 /home/ploi//vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()
#38 /home/ploi//vendor/fruitcake/laravel-cors/src/HandleCors.php(38): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#39 /home/ploi//vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fruitcake\Cors\HandleCors->handle()
#40 /home/ploi//vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#41 /home/ploi//vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Http\Middleware\TrustProxies->handle()
#42 /home/ploi//vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#43 /home/ploi//vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(142): Illuminate\Pipeline\Pipeline->then()
#44 /home/ploi//vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#45 /home/ploi//public/index.php(51): Illuminate\Foundation\Http\Kernel->handle()
#46 {main}
"}
Hello Mark, congrats on the package!
I tried to install, but I've got this error, does the package support PHP 8+ ? Thank you in advance.
`Your requirements could not be resolved to an installable set of packages.
Problem 1
- mvdnbrk/laravel-postmark-webhooks[v0.1.0, ..., v0.2.1, v1.0.0, ..., v1.5.1] require php ^7.1 -> your php version (8.2.6) does not satisfy that requirement.
- mvdnbrk/laravel-postmark-webhooks v1.6.0 requires illuminate/support ^6.0 || ^7.0 || ^8.0 -> found illuminate/support[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
- mvdnbrk/laravel-postmark-webhooks v1.7.0 requires illuminate/support ^6.0 || ^7.0 || ^8.0 || ^9.0 -> found illuminate/support[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.15] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires mvdnbrk/laravel-postmark-webhooks * -> satisfiable by mvdnbrk/laravel-postmark-webhooks[v0.1.0, v0.2.0, v0.2.1, v1.0.0, ..., v1.7.0].`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.