jingcai-php/app/Events/OrderPaySuccessEvent.php

27 lines
487 B
PHP
Executable File

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