This section will guide you through all necessary and optional installation and configuration steps.
💡 Found an issue or is this section missing anything? Feel free to open a PR or issue.
This package requires:
- PHP 7.4 or 8
Some features may have additional requirements. These will be listed in the according section of the documentation.
You can install this package using Composer by running the following command:
composer require craftzing/laravel-mollie-webhooks
We're using Laravel's package discovery to automatically register the service provider, so you don't have to register it yourself.
You can publish the package config file by running the command below, but it's not mandatory:
php artisan vendor:publish --provider="Craftzing\Laravel\MollieWebhooks\ServiceProvider" --tag="config"
The package provides a macro to tie the route to the HandleMollieWebhooksRequest
action request.
You can add it in the boot method of your RouteServiceProvider
or directly in your route files.
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
final class RouteServiceProvider extends ServiceProvider
{
public function boot(): void
{
$this->routes(function (Router $router) {
$router->mollieWebhooks('/mollie/webhook');
});
}
}
If the package requires any configuration, this is where to document it. If it doesn't, remove this section.