Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.82 KB

getting-started.md

File metadata and controls

55 lines (40 loc) · 1.82 KB

Getting started

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.

⚒️ Requirements

This package requires:

Some features may have additional requirements. These will be listed in the according section of the documentation.

🧙 Installation

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"

Routes

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');
        });
    }
}

⚙️ Configuration

If the package requires any configuration, this is where to document it. If it doesn't, remove this section.


Usage ⏩