Send webhooks from your filament apps
andresilva/filament-webhook-server is a Laravel package for send webhooks from your filament apps.
It currently has 0 GitHub stars and 937 downloads on Packagist (latest version v2.1.30).
Install it with composer require andresilva/filament-webhook-server.
Discover more Laravel packages by andresilva
or browse all Laravel packages to compare alternatives.
Last updated

This package provides a Filament page that you can send webhook server . You'll find installation instructions and full documentation on spatie/laravel-webhook-server.
:rotating_light: _For latest version that support FilamentPhp v2.x use this branch 1.x_or released version "^1.0"
You can install the package via composer:
composer require andresilva/filament-webhook-server
You can publish and run the migrations with:
php artisan vendor:publish --tag="filament-webhook-server-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="filament-webhook-server-config"
This is the contents of the published config file:
return [
/*
* Models that you want to be part of the webhooks options
*/
'models' => [
\App\Models\User::class,
],
/*
*/
'polling' => '10s'
];
Add the plugin to your panel and you're ready to go
use Marjose123\FilamentWebhookServer\WebhookPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugins([
WebhookPlugin::make() // <- Add this
]);
}
- Add the models that you want to be part of the webhook
- This package will automatically register the
Webhook-Server. You'll be able to see it when you visit your Filament admin panel.
You can customise the polling interval for the Webhook-Server by publishing the configuration file and updating the polling value.
[
{
"event": "created", // <== Type of Event
"module": "Testing", // <== Module that were the event happend
"triggered_at": "2023-01-18T05:07:37.748031Z", // <== Based on the Date and time the Event happen
"data": { // <== Actual information depending on what you selected "Summary, All or Custom"
"id": 34,
"created_at": "2023-01-18T05:07:37.000000Z"
}
}
]
for custom option you need to create toWebhookPayload method in your models
public function toWebhookPayload()
{
return [
'customAttribute' => $this->yourAttribute
];
}
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.