2FAuth/routes/channels.php

17 lines
515 B
PHP
Raw Permalink Normal View History

2019-05-20 07:37:41 +02:00
<?php
/*
|--------------------------------------------------------------------------
| 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.
|
*/
2021-12-02 13:15:53 +01:00
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
2019-05-20 07:37:41 +02:00
return (int) $user->id === (int) $id;
});