This commit is contained in:
2024-06-01 03:10:49 +02:00
parent 26551964b1
commit dd341ed642
21 changed files with 896 additions and 0 deletions

7
routes/channels.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
use Illuminate\Support\Facades\Broadcast;
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});