tapp / filament-webhook-client
Add a Filament resource and a policy for Spatie Webhook client
Fund package maintenance!
TappNetwork
Installs: 3 580
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 0
Open Issues: 3
Requires
- php: ^8.2
- filament/filament: ^3.0-stable
- illuminate/contracts: ^10.0||^11.0
- spatie/laravel-package-tools: ^1.16
- spatie/laravel-webhook-client: ^3.4
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- spatie/laravel-ray: ^1.35
This package is auto-updated.
Last update: 2024-11-30 21:48:07 UTC
README
This plugin adds a Filament resource and a policy for Spatie Webhook Client.
Installation
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"
Usage
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(), //... ]); }
Appareance
Webhook calls resource content example:
Webhook calls view content example:
Webhook Call Policy
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.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
If you discover any security-related issues, please email security@tappnetwork.com.
Credits
License
The MIT License (MIT). Please see License File for more information.