Added gold currency api

This commit is contained in:
m.razaghi
2026-08-15 21:15:32 +03:30
parent def51f6c63
commit 500ef019a3
3 changed files with 124 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class GoldCurrency extends Model
{
use HasFactory;
protected $fillable = [
'name',
'name_en',
'price',
'change_percent',
'change_value',
'symbol',
'unit',
'time_unix',
];
protected $casts = [
'price' => 'integer',
'change_percent' => 'float',
'change_value' => 'integer',
'time_unix' => 'integer',
];
}