Vanilla Laravel 7 for MotorradIG as motorradig2 project

This commit is contained in:
TorstenS 2020-07-19 12:56:25 +02:00
parent e5c726a0ea
commit 7b9f21e683
87 changed files with 19702 additions and 1 deletions

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.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});