PHP code example of diagro / lib_laravel_event
1. Go to this page and download the library: Download diagro/lib_laravel_event 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/ */
diagro / lib_laravel_event example snippets
public function boot()
{
Broadcast::routes([‘middleware’ => [‘web’, ‘broadcast’]);
...
}
class EventResult implements ShouldBroadcast
{
use BroadcastWhenOccupied;
protected function channelName(): string
{
return 'Diagro.API.Async';
}
}