mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-15 01:04:03 +00:00
Currency dropdowns now display the most-traded currencies (USD, EUR, GBP, JPY, CAD, AUD, CHF, CNY, INR, BRL) at the top, followed by the rest alphabetically. The install wizard defaults to USD instead of EUR and formats currency names as "USD - US Dollar" for consistency with the rest of the app.
21 lines
365 B
PHP
21 lines
365 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Currency extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
public const COMMON_CURRENCY_CODES = [
|
|
'USD', 'EUR', 'GBP', 'JPY', 'CAD',
|
|
'AUD', 'CHF', 'CNY', 'INR', 'BRL',
|
|
];
|
|
|
|
protected $guarded = [
|
|
'id',
|
|
];
|
|
}
|