jingcai-php/app/Events/OrderTicketedEvent.php

28 lines
486 B
PHP
Executable File

<?php
namespace App\Events;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class OrderTicketedEvent
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public $orderId;
public function __construct($orderId)
{
$this->orderId = $orderId;
}
public function getEventData()
{
return [
'order_id' =>$this->orderId
];
}
}