PHP code example of knr / knr-laravel-realtime
1. Go to this page and download the library: Download knr/knr-laravel-realtime 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/ */
knr / knr-laravel-realtime example snippets
use Knr\Realtime\Facades\Realtime;
Realtime::toAdmins('OrderPlaced', [
'order_id' => $order->id,
'order_number' => $order->order_number,
]);