Test.php 655 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Events;
  3. use Illuminate\Broadcasting\InteractsWithSockets;
  4. use Illuminate\Broadcasting\PrivateChannel;
  5. use Illuminate\Foundation\Events\Dispatchable;
  6. use Illuminate\Queue\SerializesModels;
  7. class Test
  8. {
  9. use Dispatchable, InteractsWithSockets, SerializesModels;
  10. /**
  11. * Create a new event instance.
  12. *
  13. * @return void
  14. */
  15. public function __construct()
  16. {
  17. //
  18. }
  19. /**
  20. * Get the channels the event should broadcast on.
  21. *
  22. * @return \Illuminate\Broadcasting\Channel|array
  23. */
  24. public function broadcastOn()
  25. {
  26. return new PrivateChannel('channel-name');
  27. }
  28. }