This plugin adds a Filament resource and a policy for Spatie Webhook Client.
Important
First, make sure you have Spatie Webhook Client installed and configured.
You can install the package via composer:
composer require tapp/filament-webhook-client
You can publish the config file with:
php artisan vendor:publish --tag="filament-webhook-client-config"
This is the contents of the published config file:
return [
'resources' => [
'WebhookCallResource' => \Tapp\FilamentWebhookClient\Resources\WebhookCallResource::class,
],
'models' => [
'webhook-call' => \Spatie\WebhookClient\Models\WebhookCall::class,
],
'policies' => [
'webhook-call' => \Tapp\FilamentWebhookClient\Policies\WebhookCallPolicy::class,
],
'navigation' => [
'sort' => 1,
'icon' => 'heroicon-o-rectangle-stack',
],
];
Optionally, you can publish the translations file using:
php artisan vendor:publish --tag="filament-webhook-client-translations"
Add this plugin to a panel on plugins()
method.
E.g. in app/Providers/Filament/AdminPanelProvider.php
:
use Tapp\FilamentWebhookClient\FilamentWebhookClientPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugins([
FilamentWebhookClientPlugin::make(),
//...
]);
}
Webhook calls resource content example:
Webhook calls view content example:
By default, the policy included in this plugin allows you to view the list of webhook calls and an individual webhook call.
If you need to change the permissions, you can override the policy by creating a policy in you project and adding it on policies -> webhook-call
entry on filament-webhook-client.php
config file.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security-related issues, please email security@tappnetwork.com.
The MIT License (MIT). Please see License File for more information.