You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
508 B

  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Broadcast Channels
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here you may register all of the event broadcasting channels that your
  8. | application supports. The given channel authorization callbacks are
  9. | used to check if an authenticated user can listen to the channel.
  10. |
  11. */
  12. Broadcast::channel('App.User.{id}', function ($user, $id) {
  13. return (int) $user->id === (int) $id;
  14. });