/
orlov-seeker
/
cube.example
Обзор
Документация
Войти
/
orlov-seeker
/
cube.example
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
routes/channels.php
18 строк
558 B
Орлов Павел Геннадьевич
Установка Laravel
28 янв 2025, 09:29
28 янв 2025, 09:29
a6b8eff
Код
Авторство
О чём код?
<?php 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; });