PHP code example of tapp / filament-webhook-client

1. Go to this page and download the library: Download tapp/filament-webhook-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tapp / filament-webhook-client example snippets


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',
    ],

];

use Tapp\FilamentWebhookClient\FilamentWebhookClientPlugin;
 
public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugins([
            FilamentWebhookClientPlugin::make(),
            //...
        ]);
}
bash
php artisan vendor:publish --tag="filament-webhook-client-config"
bash
php artisan vendor:publish --tag="filament-webhook-client-translations"