ifnex/04_Laravel/app/Models/Currency.php
Kazem Alghasi e9a0c731c2 feat(admin): implement currency management and rate import system
Introduce a new currency management module including a dedicated
resource, database migration, and a custom Filament page for importing
exchange rates. Additionally, enhance the ShipmentResource table with
improved column visibility, sorting, and route display, and integrate
shipment update notifications.
2026-08-24 01:18:34 +03:30

21 lines
418 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Currency extends Model
{
protected $fillable = [
'code', 'name', 'symbol', 'rate_to_rial', 'rate_to_aed', 'is_active',
];
protected function casts(): array
{
return [
'rate_to_rial' => 'decimal:4',
'rate_to_aed' => 'decimal:6',
'is_active' => 'boolean',
];
}
}