first
This commit is contained in:
27
modules/Payment/Models/PaymentNotify.php
Normal file
27
modules/Payment/Models/PaymentNotify.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Payment\Models;
|
||||
|
||||
use App\Models\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class PaymentNotify extends Model
|
||||
{
|
||||
|
||||
protected $casts = [
|
||||
'payload' => 'json',
|
||||
];
|
||||
|
||||
/**
|
||||
* Notes : 所属支付单
|
||||
*
|
||||
* @Date : 2021/5/26 9:55 上午
|
||||
* @Author : < Jason.C >
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
*/
|
||||
public function payment(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Payment::class);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user