feat: implement currency rates tracking with models, migrations and views

هذا الالتزام موجود في:
2025-05-24 05:59:12 +03:00
الأصل 72b4eff3ee
التزام b19748ef20
21 ملفات معدلة مع 690 إضافات و361 حذوفات

36
app/Models/Currency.php Normal file
عرض الملف

@@ -0,0 +1,36 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Currency extends Model
{
/** @use HasFactory<\Database\Factories\CurrencyFactory> */
use HasFactory;
/**
* The supported currency codes.
*/
const USD = 'USD';
const SAR = 'SAR';
protected $fillable = [
'code',
'name',
'symbol',
];
/**
* Get all supported currency codes
*/
public static function supportedCurrencies(): array
{
return [
self::USD,
self::SAR,
];
}
}