OrderCreateEvent.php 487 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Events;
  3. use App\Models\Order\Order;
  4. use Illuminate\Broadcasting\InteractsWithSockets;
  5. use Illuminate\Broadcasting\PrivateChannel;
  6. use Illuminate\Foundation\Events\Dispatchable;
  7. use Illuminate\Queue\SerializesModels;
  8. class OrderCreateEvent
  9. {
  10. use Dispatchable, InteractsWithSockets, SerializesModels;
  11. public Order $order;
  12. /**
  13. * @param Order $order
  14. */
  15. public function __construct(Order $order)
  16. {
  17. $this->order = $order;
  18. }
  19. }