1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-18 20:40:36 +01:00
openstamanager/routes/channels.php
Dasc3er 91f4355c36 Introduzione del framework Laravel
Introduzione di Laravel 8 come wrapper per la versione legacy del gestionale, per favorire l'aggiornamento della struttura interna.
2020-12-31 16:17:16 +01:00

19 lines
558 B
PHP

<?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;
});