Wedding Invitation
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.

channels.php 558B

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