KSA-ORACLE/app/Models/Payment.php
Nyavokevin 83ed2ba44c fix
2025-10-14 17:50:12 +03:00

41 lines
760 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',
'payment_provider',
'wise_payment_id',
'wise_session_id',
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'amount' => 'decimal:2',
'cards' => 'array',
];
}