CreatedPartner.php 708 B

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