Add Laravel broadcasting setup

Register channel routes and add the default broadcasting configuration generated for Laravel broadcasting support.
This commit is contained in:
2026-03-21 11:08:18 +01:00
parent 979e011257
commit 60f78e8235
3 changed files with 90 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;
});