re-init of motorradig2 according to laravel7 tutorial

This commit is contained in:
TorstenS 2020-08-08 11:30:47 +02:00
parent 8a3add0fcc
commit 0ce3bf26a1
106 changed files with 502 additions and 495 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;
});