File manager - Edit - /home/autoph/public_html/projects/tickets-autohub/routes/channels.php
Back
<?php use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Broadcast; /* |-------------------------------------------------------------------------- | Broadcast Channels |-------------------------------------------------------------------------- | | Here you may register all of the event broadcasting channels that your | application supports. The given channel authorization callbacks are | used to check if an authenticated user can listen to the channel. | */ // Broadcast::channel('App.Models.User.{id}', function ($user, $id) { // return (int) $user->id === (int) $id; // }); // Broadcast::channel('ticket-assigned.{id}', \App\Http\Controllers\AuthenticationController::class); Broadcast::channel('ticket-assigned.{id}', function ($user, $id) { return (int) $user->id === (int) $id; }); Broadcast::channel('ticket-chosen.{id}', function($user, $id){ // return (int) $user->id === (int) $id; if($user->id === $id){ return array('name'=>$user->name); } }); Broadcast::channel('ticket-transferred.{id}', function($user, $id){ return (int) $user->id === (int) $id; // return true; }); Broadcast::channel('ticket-creation', function($user,$id){ return true; });
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings