DevLogCreatedEvent.php 624 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace App\Module\Dev\Events;
  3. use App\Module\Dev\Models\DevLog;
  4. use Illuminate\Broadcasting\InteractsWithSockets;
  5. use Illuminate\Foundation\Events\Dispatchable;
  6. use Illuminate\Queue\SerializesModels;
  7. /**
  8. * 开发日志创建事件
  9. */
  10. class DevLogCreatedEvent
  11. {
  12. use Dispatchable, InteractsWithSockets, SerializesModels;
  13. /**
  14. * 开发日志模型
  15. *
  16. * @var DevLog
  17. */
  18. public DevLog $log;
  19. /**
  20. * 创建一个新的事件实例
  21. *
  22. * @param DevLog $log
  23. * @return void
  24. */
  25. public function __construct(DevLog $log)
  26. {
  27. $this->log = $log;
  28. }
  29. }