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.
21 lines
418 B
PHP
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',
|
|
];
|
|
}
|
|
} |