UpdatedPartner.php 643 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace App\Events;
  3. use App\Models\PartnerModel;
  4. use Illuminate\Foundation\Events\Dispatchable;
  5. use Illuminate\Broadcasting\InteractsWithSockets;
  6. use Illuminate\Support\Facades\Config;
  7. /**
  8. * 更新卡片事件
  9. * Class UpdatedPartner
  10. * @package App\Events
  11. */
  12. class UpdatedPartner
  13. {
  14. use Dispatchable;
  15. use InteractsWithSockets;
  16. public $model;
  17. public $stackGlobalConfig;
  18. /**
  19. * Create a new event instance.
  20. *
  21. * @param PartnerModel $model
  22. */
  23. public function __construct(PartnerModel $model)
  24. {
  25. $this->model = $model;
  26. $this->stackGlobalConfig = Config::all();
  27. }
  28. }