39 lines
678 B
PHP
39 lines
678 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Payment extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
'amount',
|
|
'currency',
|
|
'stripe_session_id',
|
|
'client_session_id',
|
|
'draw_count',
|
|
'status',
|
|
'cards',
|
|
'appointment_date'
|
|
];
|
|
|
|
/**
|
|
* The attributes that should be cast to native types.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $casts = [
|
|
'amount' => 'decimal:2',
|
|
'cards' => 'array',
|
|
];
|
|
|
|
}
|