KSA-ORACLE/app/Models/Payment.php
2025-09-15 13:00:04 +03:00

39 lines
679 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',
];
}