23 lines
482 B
PHP
23 lines
482 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class PaymentIntent extends Model
|
|
{
|
|
protected $fillable = [
|
|
'registration_id','provider','channel','amount','currency',
|
|
'status','provider_ref_id','checkout_url','paid_at','raw_payload'
|
|
];
|
|
|
|
protected $casts = [
|
|
'paid_at' => 'datetime',
|
|
'raw_payload' => 'array'
|
|
];
|
|
|
|
public function registration(){
|
|
return $this->belongsTo(Registration::class);
|
|
}
|
|
}
|