← Back to Plugins
  • Webhook Server
  • Webhook Server

Webhook Server

Plugin information

by Marjose123 • 6 stars

This package provides a Filament page that you can send webhook server.

Support

#marjose123-webhook-server on Discord

Views

1951

License

MIT

Documentation

Send webhooks from your filament apps

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.

Installation

You can install the package via composer:

composer require marjose123/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'
];

Usage

  1. Add the models that you want to be part of the webhook
  2. This package will automatically register the Webhook-Server. You'll be able to see it when you visit your Filament admin panel.

Customising the polling interval

You can customise the polling interval for the Webhook-Server by publishing the configuration file and updating the polling value.

Webhook payload Structure

[
{
"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 or All"
"id": 34,
"created_at": "2023-01-18T05:07:37.000000Z"
}
}
]

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.