New currency: Qatari Riyal (#476)

* add qatari riyal currency to migration and seeder

* run pint
This commit is contained in:
Ahmed Ashraf
2026-01-01 19:50:31 +03:00
committed by GitHub
parent 935fe06f9e
commit 24546aea3c
2 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
use App\Models\Currency;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration
{
public function up(): void
{
Currency::firstOrCreate(
['code' => 'QAR'],
[
'name' => 'Qatari Riyal',
'symbol' => 'QR',
'precision' => '2',
'thousand_separator' => ',',
'decimal_separator' => '.',
]);
}
};

View File

@@ -638,6 +638,14 @@ class CurrenciesTableSeeder extends Seeder
'thousand_separator' => '.',
'decimal_separator' => ',',
],
[
'name' => 'Qatari Riyal',
'code' => 'QAR',
'symbol' => 'QR',
'precision' => '2',
'thousand_separator' => ',',
'decimal_separator' => '.',
],
];
foreach ($currencies as $currency) {