Open crypnull opened 1 year ago
The Country model has a numeric
attribute.
It is not used as primary key, but you can still query countries by their numeric code like this:
\Io238\ISOCountries\Models\Country::whereNumeric(716)->first()
For languages (ISO 639-1) there is no numeric code.
Do you also need the numeric code for currencies? I might be able to add this in a future release.
I noticed the countries table does not include the numeric codes, I prefer storing countries by their numeric codes because they don't change like the 2 or 3 letter ones can, they very rarely change, but still do sometimes.