From 32f7bc053a9ff4ed790f4172a2e3af9e5d3dd406 Mon Sep 17 00:00:00 2001 From: Darko Gjorgjijoski <5760249+gdarko@users.noreply.github.com> Date: Thu, 28 Aug 2025 14:13:03 +0200 Subject: [PATCH] =?UTF-8?q?New=20currencies:=20Paraguayan=20Guaran=C3=AD,?= =?UTF-8?q?=20Algerian=20Dinar=20(#447)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(currency): add Algerian Dinar (DZD) support (#395) * Add Paraguayan Guarany (PYG) currency (#434) * Adding Paraguayan currency, closes #404 * Adding the currency to the seeder too * If the data was already seeded, don't add the entry * Pint --------- Co-authored-by: Darko Gjorgjijoski <5760249+gdarko@users.noreply.github.com> * Add DZD currency to the currencies seeder --------- Co-authored-by: Polat İnceler Co-authored-by: mchev --- ...add_new_currencies_to_currencies_table.php | 32 +++++++++++++++++++ database/seeders/CurrenciesTableSeeder.php | 16 ++++++++++ 2 files changed, 48 insertions(+) create mode 100644 database/migrations/2025_08_18_101343_add_new_currencies_to_currencies_table.php diff --git a/database/migrations/2025_08_18_101343_add_new_currencies_to_currencies_table.php b/database/migrations/2025_08_18_101343_add_new_currencies_to_currencies_table.php new file mode 100644 index 00000000..f3936f3b --- /dev/null +++ b/database/migrations/2025_08_18_101343_add_new_currencies_to_currencies_table.php @@ -0,0 +1,32 @@ + 'DZD'], + [ + 'name' => 'Algerian Dinar', + 'symbol' => 'DA', + 'precision' => '2', + 'thousand_separator' => ',', + 'decimal_separator' => '.', + ]); + + Currency::firstOrCreate( + ['code' => 'PYG'], + [ + 'name' => 'Paraguayan Guaraní', + 'symbol' => '₲', + 'precision' => '0', + 'thousand_separator' => '.', + 'decimal_separator' => ',', + ] + ); + } +}; diff --git a/database/seeders/CurrenciesTableSeeder.php b/database/seeders/CurrenciesTableSeeder.php index 675fd857..3aa11f7b 100644 --- a/database/seeders/CurrenciesTableSeeder.php +++ b/database/seeders/CurrenciesTableSeeder.php @@ -622,6 +622,22 @@ class CurrenciesTableSeeder extends Seeder 'thousand_separator' => ',', 'decimal_separator' => '.', ], + [ + 'name' => 'Algerian Dinar', + 'code' => 'DZD', + 'symbol' => 'DA', + 'precision' => '2', + 'thousand_separator' => ',', + 'decimal_separator' => '.', + ], + [ + 'name' => 'Paraguayan Guaraní', + 'code' => 'PYG', + 'symbol' => '₲', + 'precision' => '0', + 'thousand_separator' => '.', + 'decimal_separator' => ',', + ], ]; foreach ($currencies as $currency) {