Initialize laravel app

This commit is contained in:
Frankie B 2023-06-13 21:59:16 +01:00 committed by Frankie B
commit a464ef4c0e
149 changed files with 10967 additions and 1464 deletions

18
routes/channels.php Normal file
View file

@ -0,0 +1,18 @@
<?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;
});