PHP code example of giagara / laravel-asana-webhook

1. Go to this page and download the library: Download giagara/laravel-asana-webhook 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/ */

    

giagara / laravel-asana-webhook example snippets


'routes' => [
    'webhook' => AnInvokableClass::class
],

'routes' => [
    'webhook' => [
        'class' => AnInvokableClass::class,
        'name' => 'webhook-1',
        'middleware' => [CustomMiddleware::class],
    ]
]

use Giagara\AsanaWebhook\Contracts\AsanaActionInterface;

class FakeInvokableClass implements AsanaActionInterface
{
    public function __invoke(array $payload) : void
    {

        // do something

    }

}
bash
php artisan vendor:publish --tags=asana-webhook
bash
php artisan asana:list-webhook
bash
php artisan asana:create-webhook
bash
php artisan asana:delete-webhook {webhook_gid}