source: routes/channels.php@ 768f473

main
Last change on this file since 768f473 was c454c0f, checked in by bube-ristovska <ristovska725@…>, 12 months ago

First commit

  • Property mode set to 100644
File size: 558 bytes
Line 
1<?php
2
3use Illuminate\Support\Facades\Broadcast;
4
5/*
6|--------------------------------------------------------------------------
7| Broadcast Channels
8|--------------------------------------------------------------------------
9|
10| Here you may register all of the event broadcasting channels that your
11| application supports. The given channel authorization callbacks are
12| used to check if an authenticated user can listen to the channel.
13|
14*/
15
16Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
17 return (int) $user->id === (int) $id;
18});
Note: See TracBrowser for help on using the repository browser.