PaymentEvent.php 702 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Events;
  3. use App\Models\Payment;
  4. use App\Models\ShopProduct;
  5. use App\Models\User;
  6. use Illuminate\Broadcasting\InteractsWithSockets;
  7. use Illuminate\Foundation\Events\Dispatchable;
  8. use Illuminate\Queue\SerializesModels;
  9. class PaymentEvent
  10. {
  11. use Dispatchable, InteractsWithSockets, SerializesModels;
  12. public User $user;
  13. public Payment $payment;
  14. public ShopProduct $shopProduct;
  15. /**
  16. * Create a new event instance.
  17. *
  18. * @return void
  19. */
  20. public function __construct(User $user, Payment $payment, ShopProduct $shopProduct)
  21. {
  22. $this->user = $user;
  23. $this->payment = $payment;
  24. $this->shopProduct = $shopProduct;
  25. }
  26. }