This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues/pull-requests.
|
<?php
|
|
|
|
use Illuminate\Support\Facades\Broadcast;
|
|
|
|
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
|
|
return (int) $user->id === (int) $id;
|
|
});
|