LogEvent.php 599 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace App\Events;
  3. use App\Events\Event;
  4. use App\Model\Log;
  5. use Illuminate\Queue\SerializesModels;
  6. use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
  7. use Illuminate\Support\Arr;
  8. class LogEvent extends Event
  9. {
  10. use SerializesModels;
  11. public $log;
  12. /**
  13. * Create a new event instance.
  14. *
  15. * @return void
  16. */
  17. public function __construct(Log $log)
  18. {
  19. $this->log = $log;
  20. }
  21. /**
  22. * Get the channels the event should be broadcast on.
  23. *
  24. * @return array
  25. */
  26. public function broadcastOn()
  27. {
  28. return [];
  29. }
  30. }