Download the PHP package ingoldsby/laravel-dashboard-display-webhook-tile without Composer
On this page you can find all versions of the php package ingoldsby/laravel-dashboard-display-webhook-tile. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ingoldsby/laravel-dashboard-display-webhook-tile
More information about ingoldsby/laravel-dashboard-display-webhook-tile
Files in ingoldsby/laravel-dashboard-display-webhook-tile
Package laravel-dashboard-display-webhook-tile
Short Description A tile to display webhooks for Laravel Dashboard
License MIT
Homepage https://github.com/ingoldsby/laravel-dashboard-display-webhook-tile
Informations about the package laravel-dashboard-display-webhook-tile
A tile to display basic details of a webhook from a database
This tile can be used on the Laravel Dashboard to display a webhook from your database.
Installation
You can install the package via composer:
This package uses spatie/laravel-webhook-client
as the webhook provider.
Usage
In the dashboard
config file, you must add this configuration in the tiles
key. You can add a configuration in the configurations key per Webhook tile that you want to display. In this example, the webhook_calls table has been amended to capture the headers of the incoming request. Due to the formatting of the request, an offset is required (in this case, 0) to get the correct item.
This example shows multiple configurations, with the second one named payload
, matching the default column in the webhook_calls
table. Note: the default column in this example does not need an offset so it is not included.
In app\Console\Kernel.php
you should schedule the \Ingoldsby\DisplayWebhookTile\Commands\FetchDisplayWebhookCommand
to run. You can decide the frequency of running the command.
To display webhook details of another configuration, simply add the name of the configuration as an arugment.
In your dashboard view you can use the tile:
livewire:display-webhook-tile
To display webhook details of another configuration, pass the name of the configuration to the configuration-name prop.
The default title of the tile will be Latest Webhook
unless you pass a string using the title prop.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email instead of using the issue tracker.
Support Spatie
I have learnt a lot from Spatie's various packages, including Mailcoach, and would recommend you check them out if you want to know more.
Learn how to create a package like theirs, by watching Spatie's premium video course:
Spatie invest a lot of resources into creating best in class open source packages. You can support them by buying one of their paid products.
Credits
- Ingoldsby
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-dashboard-display-webhook-tile with dependencies
spatie/laravel-dashboard Version ^1.0
spatie/laravel-webhook-client Version ^2.7