Spaces:
Sleeping
Sleeping
Download routes/channels.php from Anuj-Panthri/Learn-Guide: direct link, hf CLI and curl.
- Browser
- Download file 558 Bytes
-
https://huggingface.co/spaces/Anuj-Panthri/Learn-Guide/resolve/main/routes/channels.php
- Command line
-
hf download hf://spaces/Anuj-Panthri/Learn-Guide/routes/channels.php
-
curl -L -o channels.php https://huggingface.co/spaces/Anuj-Panthri/Learn-Guide/resolve/main/routes/channels.php
558 Bytes
| 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; | |
| }); | |