first
This commit is contained in:
39
modules/Payment/Events/Paid.php
Normal file
39
modules/Payment/Events/Paid.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Payment\Events;
|
||||
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Modules\Payment\Models\Payment;
|
||||
|
||||
/**
|
||||
* Class Paid
|
||||
* 支付完成事件
|
||||
*
|
||||
* @package Module\Payment\Events
|
||||
*/
|
||||
class Paid
|
||||
{
|
||||
|
||||
use Dispatchable,
|
||||
SerializesModels;
|
||||
|
||||
/**
|
||||
* 支付订单模型
|
||||
*
|
||||
* @var \Modules\Payment\Models\Payment
|
||||
*/
|
||||
public Payment $payment;
|
||||
|
||||
/**
|
||||
* 创建一个事件的实例
|
||||
*
|
||||
* @param \Modules\Payment\Models\Payment $payment
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(Payment $payment)
|
||||
{
|
||||
$this->payment = $payment;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user