PHP code example of hello-one / laravel-webhooks
1. Go to this page and download the library: Download hello-one/laravel-webhooks 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/ */
hello-one / laravel-webhooks example snippets
Event::listen('hello-one.webhook.*', function (string $eventName, array $data) {
Log::info('hello one event received: '. $eventName, $data);
});
Event::listen('hello-one.webhook.guest.created', function (string $eventName, array $data) {
Log::info('A new Guest was just created', $data['guest']['id']);
// use the data from $data['guest']
});