Passed
Push — main ( 8da859...3789af )
by Seth
02:24
created

anonymous//src/Database/Migrations/2022_12_30_182100_seed_currencies.php$0   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 1423
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1101
dl 0
loc 1423
rs 9.196
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
B 2022_12_30_182100_seed_currencies.php$0 ➔ up() 0 1418 1
A 2022_12_30_182100_seed_currencies.php$0 ➔ down() 0 2 1
1
<?php
2
3
namespace SaasReady\Database\Migrations;
4
5
use Illuminate\Database\Migrations\Migration;
6
use Illuminate\Support\Facades\DB;
7
use Illuminate\Support\Str;
8
use SaasReady\Models\Currency;
1 ignored issue
show
Bug introduced by
The type SaasReady\Models\Currency was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
10
return new class () extends Migration {
11
    public function up(): void
12
    {
13
        $currencies = array_map(function (array $currency) {
14
            return [
15
                ...$currency,
16
                'uuid' => Str::orderedUuid(),
17
                'created_at' => now(),
18
                'updated_at' => now(),
19
            ];
20
        }, [
21
            [
22
                'code' => 'AUD',
23
                'name' => 'Australian Dollar',
24
                'symbol' => 'AU$',
25
                'decimals' => 2,
26
                'decimal_separator' => '.',
27
                'thousands_separator' => ',',
28
                'space_after_symbol' => false,
29
            ],
30
            [
31
                'code' => 'BND',
32
                'name' => 'Brunei Dollar',
33
                'symbol' => 'B$',
34
                'decimals' => 2,
35
                'decimal_separator' => '.',
36
                'thousands_separator' => ',',
37
                'space_after_symbol' => false,
38
            ],
39
            [
40
                'code' => 'CAD',
41
                'name' => 'Canadian Dollar',
42
                'symbol' => 'CA$',
43
                'decimals' => 2,
44
                'decimal_separator' => '.',
45
                'thousands_separator' => ',',
46
                'space_after_symbol' => false,
47
            ],
48
            [
49
                'code' => 'CHF',
50
                'name' => 'Swiss Franc',
51
                'symbol' => 'Fr',
52
                'decimals' => 2,
53
                'decimal_separator' => '.',
54
                'thousands_separator' => ',',
55
                'space_after_symbol' => false,
56
            ],
57
            [
58
                'code' => 'CNY',
59
                'name' => 'Chinese Yuan',
60
                'symbol' => '¥',
61
                'decimals' => 2,
62
                'decimal_separator' => '.',
63
                'thousands_separator' => ',',
64
                'space_after_symbol' => false,
65
            ],
66
            [
67
                'code' => 'EUR',
68
                'name' => 'Euro',
69
                'symbol' => '€',
70
                'decimals' => 2,
71
                'decimal_separator' => '.',
72
                'thousands_separator' => ',',
73
                'space_after_symbol' => true,
74
            ],
75
            [
76
                'code' => 'GBP',
77
                'name' => 'British Pound',
78
                'symbol' => '£',
79
                'decimals' => 2,
80
                'decimal_separator' => '.',
81
                'thousands_separator' => ',',
82
                'space_after_symbol' => false,
83
            ],
84
            [
85
                'code' => 'HKD',
86
                'name' => 'Hong Kong Dollar',
87
                'symbol' => 'HK$',
88
                'decimals' => 2,
89
                'decimal_separator' => '.',
90
                'thousands_separator' => ',',
91
                'space_after_symbol' => false,
92
            ],
93
            [
94
                'code' => 'IDR',
95
                'name' => 'Indonesian Rupiah',
96
                'symbol' => 'Rp',
97
                'decimals' => 0,
98
                'decimal_separator' => '.',
99
                'thousands_separator' => ',',
100
                'space_after_symbol' => true,
101
            ],
102
            [
103
                'code' => 'INR',
104
                'name' => 'Indian Rupee',
105
                'symbol' => '₹',
106
                'decimals' => 2,
107
                'decimal_separator' => '.',
108
                'thousands_separator' => ',',
109
                'space_after_symbol' => false,
110
            ],
111
            [
112
                'code' => 'JPY',
113
                'name' => 'Japanese Yen',
114
                'symbol' => '¥',
115
                'decimals' => 2,
116
                'decimal_separator' => '.',
117
                'thousands_separator' => ',',
118
                'space_after_symbol' => false,
119
            ],
120
            [
121
                'code' => 'KHR',
122
                'name' => 'Cambodian Riel',
123
                'symbol' => '៛',
124
                'decimals' => 2,
125
                'decimal_separator' => '.',
126
                'thousands_separator' => ',',
127
                'space_after_symbol' => false,
128
            ],
129
            [
130
                'code' => 'KRW',
131
                'name' => 'South Korean Won',
132
                'symbol' => '₩',
133
                'decimals' => 2,
134
                'decimal_separator' => '.',
135
                'thousands_separator' => ',',
136
                'space_after_symbol' => false,
137
            ],
138
            [
139
                'code' => 'LAK',
140
                'name' => 'Lao Kip',
141
                'symbol' => '₭',
142
                'decimals' => 2,
143
                'decimal_separator' => '.',
144
                'thousands_separator' => ',',
145
                'space_after_symbol' => false,
146
            ],
147
            [
148
                'code' => 'MMK',
149
                'name' => 'Burmese Kyat',
150
                'symbol' => 'Ks',
151
                'decimals' => 2,
152
                'decimal_separator' => '.',
153
                'thousands_separator' => ',',
154
                'space_after_symbol' => false,
155
            ],
156
            [
157
                'code' => 'MOP',
158
                'name' => 'Macanese Pataca',
159
                'symbol' => 'P',
160
                'decimals' => 2,
161
                'decimal_separator' => '.',
162
                'thousands_separator' => ',',
163
                'space_after_symbol' => false,
164
            ],
165
            [
166
                'code' => 'MYR',
167
                'name' => 'Malaysian Ringgit',
168
                'symbol' => 'RM',
169
                'decimals' => 2,
170
                'decimal_separator' => '.',
171
                'thousands_separator' => ',',
172
                'space_after_symbol' => false,
173
            ],
174
            [
175
                'code' => 'PHP',
176
                'name' => 'Philippine Peso',
177
                'symbol' => '₱',
178
                'decimals' => 2,
179
                'decimal_separator' => '.',
180
                'thousands_separator' => ',',
181
                'space_after_symbol' => false,
182
            ],
183
            [
184
                'code' => 'RUB',
185
                'name' => 'Russian Ruble',
186
                'symbol' => '₽',
187
                'decimals' => 2,
188
                'decimal_separator' => '.',
189
                'thousands_separator' => ',',
190
                'space_after_symbol' => false,
191
            ],
192
            [
193
                'code' => 'SGD',
194
                'name' => 'Singapore Dollar',
195
                'symbol' => 'S$',
196
                'decimals' => 2,
197
                'decimal_separator' => '.',
198
                'thousands_separator' => ',',
199
                'space_after_symbol' => false,
200
            ],
201
            [
202
                'code' => 'THB',
203
                'name' => 'Thai Baht',
204
                'symbol' => '฿',
205
                'decimals' => 2,
206
                'decimal_separator' => '.',
207
                'thousands_separator' => ',',
208
                'space_after_symbol' => false,
209
            ],
210
            [
211
                'code' => 'USD',
212
                'name' => 'United States Dollar',
213
                'symbol' => '$',
214
                'decimals' => 2,
215
                'decimal_separator' => '.',
216
                'thousands_separator' => ',',
217
                'space_after_symbol' => false,
218
            ],
219
            [
220
                'code' => 'VND',
221
                'name' => 'Vietnamese Đồng',
222
                'symbol' => '₫',
223
                'decimals' => 0,
224
                'decimal_separator' => '.',
225
                'thousands_separator' => ',',
226
                'space_after_symbol' => false,
227
            ],
228
            [
229
                'code' => 'TWD',
230
                'name' => 'New Taiwan Dollar',
231
                'symbol' => 'NT$',
232
                'decimals' => 2,
233
                'decimal_separator' => '.',
234
                'thousands_separator' => ',',
235
                'space_after_symbol' => false,
236
            ],
237
            [
238
                'code' => 'ARS',
239
                'name' => 'Argentine Peso',
240
                'symbol' => '$',
241
                'decimals' => 2,
242
                'decimal_separator' => '.',
243
                'thousands_separator' => ',',
244
                'space_after_symbol' => false,
245
            ],
246
            [
247
                'code' => 'BWP',
248
                'name' => 'Botswanan Pula',
249
                'symbol' => 'P',
250
                'decimals' => 2,
251
                'decimal_separator' => '.',
252
                'thousands_separator' => ',',
253
                'space_after_symbol' => false,
254
            ],
255
            [
256
                'code' => 'BGN',
257
                'name' => 'Bulgarian Lev',
258
                'symbol' => 'Лв.',
259
                'decimals' => 2,
260
                'decimal_separator' => '.',
261
                'thousands_separator' => ',',
262
                'space_after_symbol' => false,
263
            ],
264
            [
265
                'code' => 'XOF',
266
                'name' => 'West African CFA Franc',
267
                'symbol' => 'CFA',
268
                'decimals' => 2,
269
                'decimal_separator' => '.',
270
                'thousands_separator' => ',',
271
                'space_after_symbol' => false,
272
            ],
273
            [
274
                'code' => 'CLP',
275
                'name' => 'Chilean Peso',
276
                'symbol' => '$',
277
                'decimals' => 2,
278
                'decimal_separator' => '.',
279
                'thousands_separator' => ',',
280
                'space_after_symbol' => false,
281
            ],
282
            [
283
                'code' => 'COP',
284
                'name' => 'Colombian Peso',
285
                'symbol' => '$',
286
                'decimals' => 2,
287
                'decimal_separator' => '.',
288
                'thousands_separator' => ',',
289
                'space_after_symbol' => false,
290
            ],
291
            [
292
                'code' => 'CRC',
293
                'name' => 'Costa Rican Colón',
294
                'symbol' => '₡',
295
                'decimals' => 2,
296
                'decimal_separator' => '.',
297
                'thousands_separator' => ',',
298
                'space_after_symbol' => false,
299
            ],
300
            [
301
                'code' => 'HRK',
302
                'name' => 'Croatian Kuna',
303
                'symbol' => 'kn',
304
                'decimals' => 2,
305
                'decimal_separator' => '.',
306
                'thousands_separator' => ',',
307
                'space_after_symbol' => false,
308
            ],
309
            [
310
                'code' => 'CZK',
311
                'name' => 'Czech Koruna',
312
                'symbol' => 'Kč',
313
                'decimals' => 2,
314
                'decimal_separator' => '.',
315
                'thousands_separator' => ',',
316
                'space_after_symbol' => false,
317
            ],
318
            [
319
                'code' => 'DKK',
320
                'name' => 'Danish Krone',
321
                'symbol' => 'Kr.',
322
                'decimals' => 2,
323
                'decimal_separator' => '.',
324
                'thousands_separator' => ',',
325
                'space_after_symbol' => false,
326
            ],
327
            [
328
                'code' => 'EGP',
329
                'name' => 'Egyptian Pound',
330
                'symbol' => 'E£',
331
                'decimals' => 2,
332
                'decimal_separator' => '.',
333
                'thousands_separator' => ',',
334
                'space_after_symbol' => false,
335
            ],
336
            [
337
                'code' => 'GEL',
338
                'name' => 'Georgian Lari',
339
                'symbol' => 'GEL',
340
                'decimals' => 2,
341
                'decimal_separator' => '.',
342
                'thousands_separator' => ',',
343
                'space_after_symbol' => false,
344
            ],
345
            [
346
                'code' => 'GHS',
347
                'name' => 'Ghanaian Cedi',
348
                'symbol' => 'GH¢',
349
                'decimals' => 2,
350
                'decimal_separator' => '.',
351
                'thousands_separator' => ',',
352
                'space_after_symbol' => false,
353
            ],
354
            [
355
                'code' => 'HUF',
356
                'name' => 'Hungarian Forint',
357
                'symbol' => 'Ft',
358
                'decimals' => 2,
359
                'decimal_separator' => '.',
360
                'thousands_separator' => ',',
361
                'space_after_symbol' => false,
362
            ],
363
            [
364
                'code' => 'KES',
365
                'name' => 'Kenyan Shilling',
366
                'symbol' => 'Ksh',
367
                'decimals' => 2,
368
                'decimal_separator' => '.',
369
                'thousands_separator' => ',',
370
                'space_after_symbol' => false,
371
            ],
372
            [
373
                'code' => 'MXN',
374
                'name' => 'Mexican Peso',
375
                'symbol' => 'Mex$',
376
                'decimals' => 2,
377
                'decimal_separator' => '.',
378
                'thousands_separator' => ',',
379
                'space_after_symbol' => false,
380
            ],
381
            [
382
                'code' => 'MAD',
383
                'name' => 'Moroccan Dirham',
384
                'symbol' => 'MAD',
385
                'decimals' => 2,
386
                'decimal_separator' => '.',
387
                'thousands_separator' => ',',
388
                'space_after_symbol' => false,
389
            ],
390
            [
391
                'code' => 'ILS',
392
                'name' => 'Israeli New Shekel',
393
                'symbol' => '₪',
394
                'decimals' => 2,
395
                'decimal_separator' => '.',
396
                'thousands_separator' => ',',
397
                'space_after_symbol' => false,
398
            ],
399
            [
400
                'code' => 'NGN',
401
                'name' => 'Nigerian Naira',
402
                'symbol' => '₦',
403
                'decimals' => 2,
404
                'decimal_separator' => '.',
405
                'thousands_separator' => ',',
406
                'space_after_symbol' => false,
407
            ],
408
            [
409
                'code' => 'NPR',
410
                'name' => 'Nepalese Rupee',
411
                'symbol' => 'Re.',
412
                'decimals' => 2,
413
                'decimal_separator' => '.',
414
                'thousands_separator' => ',',
415
                'space_after_symbol' => false,
416
            ],
417
            [
418
                'code' => 'NZD',
419
                'name' => 'New Zealand Dollar',
420
                'symbol' => '$',
421
                'decimals' => 2,
422
                'decimal_separator' => '.',
423
                'thousands_separator' => ',',
424
                'space_after_symbol' => false,
425
            ],
426
            [
427
                'code' => 'NOK',
428
                'name' => 'Norwegian Krone',
429
                'symbol' => 'kr',
430
                'decimals' => 2,
431
                'decimal_separator' => '.',
432
                'thousands_separator' => ',',
433
                'space_after_symbol' => false,
434
            ],
435
            [
436
                'code' => 'PEN',
437
                'name' => 'Peruvian sol',
438
                'symbol' => 'S/',
439
                'decimals' => 2,
440
                'decimal_separator' => '.',
441
                'thousands_separator' => ',',
442
                'space_after_symbol' => false,
443
            ],
444
            [
445
                'code' => 'RON',
446
                'name' => 'Romanian Leu',
447
                'symbol' => 'lei',
448
                'decimals' => 2,
449
                'decimal_separator' => '.',
450
                'thousands_separator' => ',',
451
                'space_after_symbol' => false,
452
            ],
453
            [
454
                'code' => 'ZAR',
455
                'name' => 'South African Rand',
456
                'symbol' => 'R',
457
                'decimals' => 2,
458
                'decimal_separator' => '.',
459
                'thousands_separator' => ',',
460
                'space_after_symbol' => false,
461
            ],
462
            [
463
                'code' => 'LKR',
464
                'name' => 'Sri Lankan Rupee',
465
                'symbol' => 'Rs',
466
                'decimals' => 2,
467
                'decimal_separator' => '.',
468
                'thousands_separator' => ',',
469
                'space_after_symbol' => false,
470
            ],
471
            [
472
                'code' => 'SEK',
473
                'name' => 'Swedish Krona',
474
                'symbol' => 'kr',
475
                'decimals' => 2,
476
                'decimal_separator' => '.',
477
                'thousands_separator' => ',',
478
                'space_after_symbol' => false,
479
            ],
480
            [
481
                'code' => 'TZS',
482
                'name' => 'Tanzanian Shilling',
483
                'symbol' => 'TSh',
484
                'decimals' => 2,
485
                'decimal_separator' => '.',
486
                'thousands_separator' => ',',
487
                'space_after_symbol' => false,
488
            ],
489
            [
490
                'code' => 'TRY',
491
                'name' => 'Turkish lira',
492
                'symbol' => '₺',
493
                'decimals' => 2,
494
                'decimal_separator' => '.',
495
                'thousands_separator' => ',',
496
                'space_after_symbol' => false,
497
            ],
498
            [
499
                'code' => 'AED',
500
                'name' => 'United Arab Emirates Dirham',
501
                'symbol' => 'د.إ',
502
                'decimals' => 2,
503
                'decimal_separator' => '.',
504
                'thousands_separator' => ',',
505
                'space_after_symbol' => false,
506
            ],
507
            [
508
                'code' => 'UGX',
509
                'name' => 'Ugandan Shilling',
510
                'symbol' => 'USh',
511
                'decimals' => 2,
512
                'decimal_separator' => '.',
513
                'thousands_separator' => ',',
514
                'space_after_symbol' => false,
515
            ],
516
            [
517
                'code' => 'UAH',
518
                'name' => 'Ukrainian hryvnia',
519
                'symbol' => '₴',
520
                'decimals' => 2,
521
                'decimal_separator' => '.',
522
                'thousands_separator' => ',',
523
                'space_after_symbol' => false,
524
            ],
525
            [
526
                'code' => 'UYU',
527
                'name' => 'Uruguayan Peso',
528
                'symbol' => '$U',
529
                'decimals' => 2,
530
                'decimal_separator' => '.',
531
                'thousands_separator' => ',',
532
                'space_after_symbol' => false,
533
            ],
534
            [
535
                'code' => 'ZMW',
536
                'name' => 'Zambian Kwacha',
537
                'symbol' => 'ZK',
538
                'decimals' => 2,
539
                'decimal_separator' => '.',
540
                'thousands_separator' => ',',
541
                'space_after_symbol' => false,
542
            ],
543
            [
544
                'code' => 'KWD',
545
                'name' => 'Kuwait Dinar',
546
                'symbol' => 'د.ك',
547
                'decimals' => 2,
548
                'decimal_separator' => '.',
549
                'thousands_separator' => ',',
550
                'space_after_symbol' => false,
551
            ],
552
            [
553
                'code' => 'OMR',
554
                'name' => 'Omani Rial',
555
                'symbol' => 'ر.ع.',
556
                'decimals' => 2,
557
                'decimal_separator' => '.',
558
                'thousands_separator' => ',',
559
                'space_after_symbol' => false,
560
            ],
561
            [
562
                'code' => 'PLN',
563
                'name' => 'Polish Złoty',
564
                'symbol' => 'zł',
565
                'decimals' => 2,
566
                'decimal_separator' => '.',
567
                'thousands_separator' => ',',
568
                'space_after_symbol' => false,
569
            ],
570
            [
571
                'code' => 'QAR',
572
                'name' => 'Qatari Rial',
573
                'symbol' => 'ر.ق',
574
                'decimals' => 2,
575
                'decimal_separator' => '.',
576
                'thousands_separator' => ',',
577
                'space_after_symbol' => false,
578
            ],
579
            [
580
                'code' => 'SAR',
581
                'name' => 'Saudi Riyal',
582
                'symbol' => 'ر.س',
583
                'decimals' => 2,
584
                'decimal_separator' => '.',
585
                'thousands_separator' => ',',
586
                'space_after_symbol' => false,
587
            ],
588
            [
589
                'code' => 'BHD',
590
                'name' => 'Bahraini Dinar',
591
                'symbol' => '.د.ب',
592
                'decimals' => 2,
593
                'decimal_separator' => '.',
594
                'thousands_separator' => ',',
595
                'space_after_symbol' => false,
596
            ],
597
            [
598
                'code' => 'AFN',
599
                'name' => 'Afghan Afghani',
600
                'symbol' => '؋',
601
                'decimals' => 2,
602
                'decimal_separator' => '.',
603
                'thousands_separator' => ',',
604
                'space_after_symbol' => false,
605
            ],
606
            [
607
                'code' => 'ALL',
608
                'name' => 'Albanian Lek',
609
                'symbol' => 'L',
610
                'decimals' => 2,
611
                'decimal_separator' => '.',
612
                'thousands_separator' => ',',
613
                'space_after_symbol' => false,
614
            ],
615
            [
616
                'code' => 'DZD',
617
                'name' => 'Algerian Dinar',
618
                'symbol' => 'دج',
619
                'decimals' => 2,
620
                'decimal_separator' => '.',
621
                'thousands_separator' => ',',
622
                'space_after_symbol' => false,
623
            ],
624
            [
625
                'code' => 'AOA',
626
                'name' => 'Angolan Kwanza',
627
                'symbol' => 'Kz',
628
                'decimals' => 2,
629
                'decimal_separator' => '.',
630
                'thousands_separator' => ',',
631
                'space_after_symbol' => false,
632
            ],
633
            [
634
                'code' => 'XCD',
635
                'name' => 'Eastern Caribbean Dollar',
636
                'symbol' => '$',
637
                'decimals' => 2,
638
                'decimal_separator' => '.',
639
                'thousands_separator' => ',',
640
                'space_after_symbol' => false,
641
            ],
642
            [
643
                'code' => 'AMD',
644
                'name' => 'Armenian Dram',
645
                'symbol' => '֏',
646
                'decimals' => 2,
647
                'decimal_separator' => '.',
648
                'thousands_separator' => ',',
649
                'space_after_symbol' => false,
650
            ],
651
            [
652
                'code' => 'AWG',
653
                'name' => 'Aruban Florin',
654
                'symbol' => 'ƒ',
655
                'decimals' => 2,
656
                'decimal_separator' => '.',
657
                'thousands_separator' => ',',
658
                'space_after_symbol' => false,
659
            ],
660
            [
661
                'code' => 'AZN',
662
                'name' => 'Azerbaijani Manat',
663
                'symbol' => '₼',
664
                'decimals' => 2,
665
                'decimal_separator' => '.',
666
                'thousands_separator' => ',',
667
                'space_after_symbol' => false,
668
            ],
669
            [
670
                'code' => 'BSD',
671
                'name' => 'Bahamian Dollar',
672
                'symbol' => 'B$',
673
                'decimals' => 2,
674
                'decimal_separator' => '.',
675
                'thousands_separator' => ',',
676
                'space_after_symbol' => false,
677
            ],
678
            [
679
                'code' => 'BDT',
680
                'name' => 'Bangladeshi Taka',
681
                'symbol' => '৳',
682
                'decimals' => 2,
683
                'decimal_separator' => '.',
684
                'thousands_separator' => ',',
685
                'space_after_symbol' => false,
686
            ],
687
            [
688
                'code' => 'BBD',
689
                'name' => 'Barbados Dollar',
690
                'symbol' => 'Bds$',
691
                'decimals' => 2,
692
                'decimal_separator' => '.',
693
                'thousands_separator' => ',',
694
                'space_after_symbol' => false,
695
            ],
696
            [
697
                'code' => 'BYN',
698
                'name' => 'Belarusian Ruble',
699
                'symbol' => 'Br',
700
                'decimals' => 2,
701
                'decimal_separator' => '.',
702
                'thousands_separator' => ',',
703
                'space_after_symbol' => false,
704
            ],
705
            [
706
                'code' => 'BZD',
707
                'name' => 'Belize Dollar',
708
                'symbol' => '$',
709
                'decimals' => 2,
710
                'decimal_separator' => '.',
711
                'thousands_separator' => ',',
712
                'space_after_symbol' => false,
713
            ],
714
            [
715
                'code' => 'BMD',
716
                'name' => 'Bermudian Dollar',
717
                'symbol' => '$',
718
                'decimals' => 2,
719
                'decimal_separator' => '.',
720
                'thousands_separator' => ',',
721
                'space_after_symbol' => false,
722
            ],
723
            [
724
                'code' => 'BTN',
725
                'name' => 'Bhutanese Ngultrum',
726
                'symbol' => 'Nu.',
727
                'decimals' => 2,
728
                'decimal_separator' => '.',
729
                'thousands_separator' => ',',
730
                'space_after_symbol' => false,
731
            ],
732
            [
733
                'code' => 'BOB',
734
                'name' => 'Bolivian Boliviano',
735
                'symbol' => 'Bs',
736
                'decimals' => 2,
737
                'decimal_separator' => '.',
738
                'thousands_separator' => ',',
739
                'space_after_symbol' => false,
740
            ],
741
            [
742
                'code' => 'BAM',
743
                'name' => 'Bosnia and Herzegovina Convertible Mark',
744
                'symbol' => 'KM',
745
                'decimals' => 2,
746
                'decimal_separator' => '.',
747
                'thousands_separator' => ',',
748
                'space_after_symbol' => false,
749
            ],
750
            [
751
                'code' => 'BRL',
752
                'name' => 'Brazilian Real',
753
                'symbol' => 'R$',
754
                'decimals' => 2,
755
                'decimal_separator' => '.',
756
                'thousands_separator' => ',',
757
                'space_after_symbol' => false,
758
            ],
759
            [
760
                'code' => 'BIF',
761
                'name' => 'Burundian Franc',
762
                'symbol' => 'FBu',
763
                'decimals' => 2,
764
                'decimal_separator' => '.',
765
                'thousands_separator' => ',',
766
                'space_after_symbol' => false,
767
            ],
768
            [
769
                'code' => 'XAF',
770
                'name' => 'Central African CFA Franc',
771
                'symbol' => 'FCFA',
772
                'decimals' => 2,
773
                'decimal_separator' => '.',
774
                'thousands_separator' => ',',
775
                'space_after_symbol' => false,
776
            ],
777
            [
778
                'code' => 'CVE',
779
                'name' => 'Cape Verdean Escudo',
780
                'symbol' => 'Esc',
781
                'decimals' => 2,
782
                'decimal_separator' => '.',
783
                'thousands_separator' => ',',
784
                'space_after_symbol' => false,
785
            ],
786
            [
787
                'code' => 'KYD',
788
                'name' => 'Cayman Islands Dollar',
789
                'symbol' => '$',
790
                'decimals' => 2,
791
                'decimal_separator' => '.',
792
                'thousands_separator' => ',',
793
                'space_after_symbol' => false,
794
            ],
795
            [
796
                'code' => 'KMF',
797
                'name' => 'Comorian Franc',
798
                'symbol' => 'CF',
799
                'decimals' => 2,
800
                'decimal_separator' => '.',
801
                'thousands_separator' => ',',
802
                'space_after_symbol' => false,
803
            ],
804
            [
805
                'code' => 'CDF',
806
                'name' => 'Congolese Franc',
807
                'symbol' => 'FC',
808
                'decimals' => 2,
809
                'decimal_separator' => '.',
810
                'thousands_separator' => ',',
811
                'space_after_symbol' => false,
812
            ],
813
            [
814
                'code' => 'CUP',
815
                'name' => 'Cuban Peso',
816
                'symbol' => '₱',
817
                'decimals' => 2,
818
                'decimal_separator' => '.',
819
                'thousands_separator' => ',',
820
                'space_after_symbol' => false,
821
            ],
822
            [
823
                'code' => 'ANG',
824
                'name' => 'Netherlands Antillean Guilder',
825
                'symbol' => 'ƒ',
826
                'decimals' => 2,
827
                'decimal_separator' => '.',
828
                'thousands_separator' => ',',
829
                'space_after_symbol' => false,
830
            ],
831
            [
832
                'code' => 'DJF',
833
                'name' => 'Djiboutian Franc',
834
                'symbol' => 'Fdj',
835
                'decimals' => 2,
836
                'decimal_separator' => '.',
837
                'thousands_separator' => ',',
838
                'space_after_symbol' => false,
839
            ],
840
            [
841
                'code' => 'DOP',
842
                'name' => 'Dominican Peso',
843
                'symbol' => 'RD$',
844
                'decimals' => 2,
845
                'decimal_separator' => '.',
846
                'thousands_separator' => ',',
847
                'space_after_symbol' => false,
848
            ],
849
            [
850
                'code' => 'SVC',
851
                'name' => 'Salvadoran Colon',
852
                'symbol' => '₡',
853
                'decimals' => 2,
854
                'decimal_separator' => '.',
855
                'thousands_separator' => ',',
856
                'space_after_symbol' => false,
857
            ],
858
            [
859
                'code' => 'ERN',
860
                'name' => 'Eritrean Nakfa',
861
                'symbol' => 'Nfk',
862
                'decimals' => 2,
863
                'decimal_separator' => '.',
864
                'thousands_separator' => ',',
865
                'space_after_symbol' => false,
866
            ],
867
            [
868
                'code' => 'ETB',
869
                'name' => 'Ethiopian Birr',
870
                'symbol' => 'Br',
871
                'decimals' => 2,
872
                'decimal_separator' => '.',
873
                'thousands_separator' => ',',
874
                'space_after_symbol' => false,
875
            ],
876
            [
877
                'code' => 'FKP',
878
                'name' => 'Falkland Islands Pound',
879
                'symbol' => '£',
880
                'decimals' => 2,
881
                'decimal_separator' => '.',
882
                'thousands_separator' => ',',
883
                'space_after_symbol' => false,
884
            ],
885
            [
886
                'code' => 'FJD',
887
                'name' => 'Fijian Dollar',
888
                'symbol' => 'FJ$',
889
                'decimals' => 2,
890
                'decimal_separator' => '.',
891
                'thousands_separator' => ',',
892
                'space_after_symbol' => false,
893
            ],
894
            [
895
                'code' => 'XPF',
896
                'name' => 'CFP Franc',
897
                'symbol' => '₣',
898
                'decimals' => 2,
899
                'decimal_separator' => '.',
900
                'thousands_separator' => ',',
901
                'space_after_symbol' => false,
902
            ],
903
            [
904
                'code' => 'GMD',
905
                'name' => 'Gambian Dalasi',
906
                'symbol' => 'D',
907
                'decimals' => 2,
908
                'decimal_separator' => '.',
909
                'thousands_separator' => ',',
910
                'space_after_symbol' => false,
911
            ],
912
            [
913
                'code' => 'GIP',
914
                'name' => 'Gibraltar Pound',
915
                'symbol' => '£',
916
                'decimals' => 2,
917
                'decimal_separator' => '.',
918
                'thousands_separator' => ',',
919
                'space_after_symbol' => false,
920
            ],
921
            [
922
                'code' => 'GTQ',
923
                'name' => 'Guatemalan Quetzal',
924
                'symbol' => 'Q',
925
                'decimals' => 2,
926
                'decimal_separator' => '.',
927
                'thousands_separator' => ',',
928
                'space_after_symbol' => false,
929
            ],
930
            [
931
                'code' => 'GNF',
932
                'name' => 'Guinean Franc',
933
                'symbol' => 'FG',
934
                'decimals' => 2,
935
                'decimal_separator' => '.',
936
                'thousands_separator' => ',',
937
                'space_after_symbol' => false,
938
            ],
939
            [
940
                'code' => 'GYD',
941
                'name' => 'Guyanese Dollar',
942
                'symbol' => 'GY$',
943
                'decimals' => 2,
944
                'decimal_separator' => '.',
945
                'thousands_separator' => ',',
946
                'space_after_symbol' => false,
947
            ],
948
            [
949
                'code' => 'HTG',
950
                'name' => 'Haitian Gourde',
951
                'symbol' => 'G',
952
                'decimals' => 2,
953
                'decimal_separator' => '.',
954
                'thousands_separator' => ',',
955
                'space_after_symbol' => false,
956
            ],
957
            [
958
                'code' => 'HNL',
959
                'name' => 'Honduran Lempira',
960
                'symbol' => 'L',
961
                'decimals' => 2,
962
                'decimal_separator' => '.',
963
                'thousands_separator' => ',',
964
                'space_after_symbol' => false,
965
            ],
966
            [
967
                'code' => 'ISK',
968
                'name' => 'Icelandic Krona',
969
                'symbol' => 'kr',
970
                'decimals' => 2,
971
                'decimal_separator' => '.',
972
                'thousands_separator' => ',',
973
                'space_after_symbol' => false,
974
            ],
975
            [
976
                'code' => 'IRR',
977
                'name' => 'Iranian Rial',
978
                'symbol' => '﷼',
979
                'decimals' => 2,
980
                'decimal_separator' => '.',
981
                'thousands_separator' => ',',
982
                'space_after_symbol' => false,
983
            ],
984
            [
985
                'code' => 'IQD',
986
                'name' => 'Iraqi Dinar',
987
                'symbol' => 'ع.د',
988
                'decimals' => 2,
989
                'decimal_separator' => '.',
990
                'thousands_separator' => ',',
991
                'space_after_symbol' => false,
992
            ],
993
            [
994
                'code' => 'JMD',
995
                'name' => 'Jamaican Dollar',
996
                'symbol' => '$',
997
                'decimals' => 2,
998
                'decimal_separator' => '.',
999
                'thousands_separator' => ',',
1000
                'space_after_symbol' => false,
1001
            ],
1002
            [
1003
                'code' => 'JOD',
1004
                'name' => 'Jordanian Dinar',
1005
                'symbol' => 'د.ا',
1006
                'decimals' => 2,
1007
                'decimal_separator' => '.',
1008
                'thousands_separator' => ',',
1009
                'space_after_symbol' => false,
1010
            ],
1011
            [
1012
                'code' => 'KZT',
1013
                'name' => 'Kazakhstani Tenge',
1014
                'symbol' => '₸',
1015
                'decimals' => 2,
1016
                'decimal_separator' => '.',
1017
                'thousands_separator' => ',',
1018
                'space_after_symbol' => false,
1019
            ],
1020
            [
1021
                'code' => 'KPW',
1022
                'name' => 'North Korean Won',
1023
                'symbol' => '₩',
1024
                'decimals' => 2,
1025
                'decimal_separator' => '.',
1026
                'thousands_separator' => ',',
1027
                'space_after_symbol' => false,
1028
            ],
1029
            [
1030
                'code' => 'KGS',
1031
                'name' => 'Kyrgyzstani Som',
1032
                'symbol' => 'Лв',
1033
                'decimals' => 2,
1034
                'decimal_separator' => '.',
1035
                'thousands_separator' => ',',
1036
                'space_after_symbol' => false,
1037
            ],
1038
            [
1039
                'code' => 'LBP',
1040
                'name' => 'Lebanese Pound',
1041
                'symbol' => 'ل.ل.',
1042
                'decimals' => 2,
1043
                'decimal_separator' => '.',
1044
                'thousands_separator' => ',',
1045
                'space_after_symbol' => false,
1046
            ],
1047
            [
1048
                'code' => 'LSL',
1049
                'name' => 'Lesotho Loti',
1050
                'symbol' => 'L',
1051
                'decimals' => 2,
1052
                'decimal_separator' => '.',
1053
                'thousands_separator' => ',',
1054
                'space_after_symbol' => false,
1055
            ],
1056
            [
1057
                'code' => 'LRD',
1058
                'name' => 'Liberian Dollar',
1059
                'symbol' => 'L$',
1060
                'decimals' => 2,
1061
                'decimal_separator' => '.',
1062
                'thousands_separator' => ',',
1063
                'space_after_symbol' => false,
1064
            ],
1065
            [
1066
                'code' => 'LYD',
1067
                'name' => 'Libyan Dinar',
1068
                'symbol' => 'ل.د',
1069
                'decimals' => 2,
1070
                'decimal_separator' => '.',
1071
                'thousands_separator' => ',',
1072
                'space_after_symbol' => false,
1073
            ],
1074
            [
1075
                'code' => 'MKD',
1076
                'name' => 'Macedonian Denar',
1077
                'symbol' => 'Ден',
1078
                'decimals' => 2,
1079
                'decimal_separator' => '.',
1080
                'thousands_separator' => ',',
1081
                'space_after_symbol' => false,
1082
            ],
1083
            [
1084
                'code' => 'MGA',
1085
                'name' => 'Malagasy Ariary',
1086
                'symbol' => 'Ar',
1087
                'decimals' => 2,
1088
                'decimal_separator' => '.',
1089
                'thousands_separator' => ',',
1090
                'space_after_symbol' => false,
1091
            ],
1092
            [
1093
                'code' => 'MWK',
1094
                'name' => 'Malawian Kwacha',
1095
                'symbol' => 'MK',
1096
                'decimals' => 2,
1097
                'decimal_separator' => '.',
1098
                'thousands_separator' => ',',
1099
                'space_after_symbol' => false,
1100
            ],
1101
            [
1102
                'code' => 'MVR',
1103
                'name' => 'Maldivian Rufiyaa',
1104
                'symbol' => '.ރ',
1105
                'decimals' => 2,
1106
                'decimal_separator' => '.',
1107
                'thousands_separator' => ',',
1108
                'space_after_symbol' => false,
1109
            ],
1110
            [
1111
                'code' => 'MRO',
1112
                'name' => 'Mauritanian Ouguiya',
1113
                'symbol' => 'UM',
1114
                'decimals' => 2,
1115
                'decimal_separator' => '.',
1116
                'thousands_separator' => ',',
1117
                'space_after_symbol' => false,
1118
            ],
1119
            [
1120
                'code' => 'MUR',
1121
                'name' => 'Mauritian Rupee',
1122
                'symbol' => '₨',
1123
                'decimals' => 2,
1124
                'decimal_separator' => '.',
1125
                'thousands_separator' => ',',
1126
                'space_after_symbol' => false,
1127
            ],
1128
            [
1129
                'code' => 'MDL',
1130
                'name' => 'Moldovan Leu',
1131
                'symbol' => 'L',
1132
                'decimals' => 2,
1133
                'decimal_separator' => '.',
1134
                'thousands_separator' => ',',
1135
                'space_after_symbol' => false,
1136
            ],
1137
            [
1138
                'code' => 'MNT',
1139
                'name' => 'Mongolian Togrog',
1140
                'symbol' => '₮',
1141
                'decimals' => 2,
1142
                'decimal_separator' => '.',
1143
                'thousands_separator' => ',',
1144
                'space_after_symbol' => false,
1145
            ],
1146
            [
1147
                'code' => 'MZN',
1148
                'name' => 'Mozambican Metical',
1149
                'symbol' => 'MT',
1150
                'decimals' => 2,
1151
                'decimal_separator' => '.',
1152
                'thousands_separator' => ',',
1153
                'space_after_symbol' => false,
1154
            ],
1155
            [
1156
                'code' => 'NAD',
1157
                'name' => 'Namibian Dollar',
1158
                'symbol' => 'N$',
1159
                'decimals' => 2,
1160
                'decimal_separator' => '.',
1161
                'thousands_separator' => ',',
1162
                'space_after_symbol' => false,
1163
            ],
1164
            [
1165
                'code' => 'NIO',
1166
                'name' => 'Nicaraguan Cordoba',
1167
                'symbol' => 'C$',
1168
                'decimals' => 2,
1169
                'decimal_separator' => '.',
1170
                'thousands_separator' => ',',
1171
                'space_after_symbol' => false,
1172
            ],
1173
            [
1174
                'code' => 'PKR',
1175
                'name' => 'Pakistani Rupee',
1176
                'symbol' => '₨',
1177
                'decimals' => 2,
1178
                'decimal_separator' => '.',
1179
                'thousands_separator' => ',',
1180
                'space_after_symbol' => false,
1181
            ],
1182
            [
1183
                'code' => 'PAB',
1184
                'name' => 'Panamanian Balboa',
1185
                'symbol' => 'B/.',
1186
                'decimals' => 2,
1187
                'decimal_separator' => '.',
1188
                'thousands_separator' => ',',
1189
                'space_after_symbol' => false,
1190
            ],
1191
            [
1192
                'code' => 'PGK',
1193
                'name' => 'Papua New Guinean Kina',
1194
                'symbol' => 'K',
1195
                'decimals' => 2,
1196
                'decimal_separator' => '.',
1197
                'thousands_separator' => ',',
1198
                'space_after_symbol' => false,
1199
            ],
1200
            [
1201
                'code' => 'PYG',
1202
                'name' => 'Paraguayan Guarani',
1203
                'symbol' => '₲',
1204
                'decimals' => 2,
1205
                'decimal_separator' => '.',
1206
                'thousands_separator' => ',',
1207
                'space_after_symbol' => false,
1208
            ],
1209
            [
1210
                'code' => 'RWF',
1211
                'name' => 'Rwandan Franc',
1212
                'symbol' => 'FRw',
1213
                'decimals' => 2,
1214
                'decimal_separator' => '.',
1215
                'thousands_separator' => ',',
1216
                'space_after_symbol' => false,
1217
            ],
1218
            [
1219
                'code' => 'SHP',
1220
                'name' => 'Saint Helena Pound',
1221
                'symbol' => '£',
1222
                'decimals' => 2,
1223
                'decimal_separator' => '.',
1224
                'thousands_separator' => ',',
1225
                'space_after_symbol' => false,
1226
            ],
1227
            [
1228
                'code' => 'WST',
1229
                'name' => 'Samoan Tala',
1230
                'symbol' => 'WS$',
1231
                'decimals' => 2,
1232
                'decimal_separator' => '.',
1233
                'thousands_separator' => ',',
1234
                'space_after_symbol' => false,
1235
            ],
1236
            [
1237
                'code' => 'STD',
1238
                'name' => 'Sao Tome and Principe Dobra',
1239
                'symbol' => 'Db',
1240
                'decimals' => 2,
1241
                'decimal_separator' => '.',
1242
                'thousands_separator' => ',',
1243
                'space_after_symbol' => false,
1244
            ],
1245
            [
1246
                'code' => 'RSD',
1247
                'name' => 'Serbian Dinar',
1248
                'symbol' => 'din',
1249
                'decimals' => 2,
1250
                'decimal_separator' => '.',
1251
                'thousands_separator' => ',',
1252
                'space_after_symbol' => false,
1253
            ],
1254
            [
1255
                'code' => 'SCR',
1256
                'name' => 'Seychellois Rupee',
1257
                'symbol' => '₨ /-',
1258
                'decimals' => 2,
1259
                'decimal_separator' => '.',
1260
                'thousands_separator' => ',',
1261
                'space_after_symbol' => false,
1262
            ],
1263
            [
1264
                'code' => 'SLL',
1265
                'name' => 'Sierra Leonean Leone',
1266
                'symbol' => 'Le',
1267
                'decimals' => 2,
1268
                'decimal_separator' => '.',
1269
                'thousands_separator' => ',',
1270
                'space_after_symbol' => false,
1271
            ],
1272
            [
1273
                'code' => 'SBD',
1274
                'name' => 'Solomon Islands Dollar',
1275
                'symbol' => 'Si$',
1276
                'decimals' => 2,
1277
                'decimal_separator' => '.',
1278
                'thousands_separator' => ',',
1279
                'space_after_symbol' => false,
1280
            ],
1281
            [
1282
                'code' => 'SOS',
1283
                'name' => 'Somali Shilling',
1284
                'symbol' => 'Sh.so.',
1285
                'decimals' => 2,
1286
                'decimal_separator' => '.',
1287
                'thousands_separator' => ',',
1288
                'space_after_symbol' => false,
1289
            ],
1290
            [
1291
                'code' => 'SSP',
1292
                'name' => 'South Sudanese Pound',
1293
                'symbol' => '£',
1294
                'decimals' => 2,
1295
                'decimal_separator' => '.',
1296
                'thousands_separator' => ',',
1297
                'space_after_symbol' => false,
1298
            ],
1299
            [
1300
                'code' => 'SDG',
1301
                'name' => 'Sudanese Pound',
1302
                'symbol' => 'ج.س.',
1303
                'decimals' => 2,
1304
                'decimal_separator' => '.',
1305
                'thousands_separator' => ',',
1306
                'space_after_symbol' => false,
1307
            ],
1308
            [
1309
                'code' => 'SRD',
1310
                'name' => 'Suriname Dollar',
1311
                'symbol' => '$',
1312
                'decimals' => 2,
1313
                'decimal_separator' => '.',
1314
                'thousands_separator' => ',',
1315
                'space_after_symbol' => false,
1316
            ],
1317
            [
1318
                'code' => 'SZL',
1319
                'name' => 'Swazi Lilangeni',
1320
                'symbol' => 'E',
1321
                'decimals' => 2,
1322
                'decimal_separator' => '.',
1323
                'thousands_separator' => ',',
1324
                'space_after_symbol' => false,
1325
            ],
1326
            [
1327
                'code' => 'SYP',
1328
                'name' => 'Syrian Pound',
1329
                'symbol' => '£S',
1330
                'decimals' => 2,
1331
                'decimal_separator' => '.',
1332
                'thousands_separator' => ',',
1333
                'space_after_symbol' => false,
1334
            ],
1335
            [
1336
                'code' => 'TJS',
1337
                'name' => 'Tajikistani Somoni',
1338
                'symbol' => 'SM',
1339
                'decimals' => 2,
1340
                'decimal_separator' => '.',
1341
                'thousands_separator' => ',',
1342
                'space_after_symbol' => false,
1343
            ],
1344
            [
1345
                'code' => 'TOP',
1346
                'name' => 'Tongan Paʻanga',
1347
                'symbol' => 'T$',
1348
                'decimals' => 2,
1349
                'decimal_separator' => '.',
1350
                'thousands_separator' => ',',
1351
                'space_after_symbol' => false,
1352
            ],
1353
            [
1354
                'code' => 'TTD',
1355
                'name' => 'Trinidad and Tobago Dollar',
1356
                'symbol' => 'TT$',
1357
                'decimals' => 2,
1358
                'decimal_separator' => '.',
1359
                'thousands_separator' => ',',
1360
                'space_after_symbol' => false,
1361
            ],
1362
            [
1363
                'code' => 'TND',
1364
                'name' => 'Tunisian dinar',
1365
                'symbol' => 'د.ت',
1366
                'decimals' => 2,
1367
                'decimal_separator' => '.',
1368
                'thousands_separator' => ',',
1369
                'space_after_symbol' => false,
1370
            ],
1371
            [
1372
                'code' => 'TMT',
1373
                'name' => 'Turkmenistani Manat',
1374
                'symbol' => 'T',
1375
                'decimals' => 2,
1376
                'decimal_separator' => '.',
1377
                'thousands_separator' => ',',
1378
                'space_after_symbol' => false,
1379
            ],
1380
            [
1381
                'code' => 'UZS',
1382
                'name' => 'Uzbekistani soʻm',
1383
                'symbol' => "so'm",
1384
                'decimals' => 2,
1385
                'decimal_separator' => '.',
1386
                'thousands_separator' => ',',
1387
                'space_after_symbol' => false,
1388
            ],
1389
            [
1390
                'code' => 'VUV',
1391
                'name' => 'Vanuatu Vatu',
1392
                'symbol' => 'VT',
1393
                'decimals' => 2,
1394
                'decimal_separator' => '.',
1395
                'thousands_separator' => ',',
1396
                'space_after_symbol' => false,
1397
            ],
1398
            [
1399
                'code' => 'VEF',
1400
                'name' => 'Venezuelan bolívar',
1401
                'symbol' => 'Bs.S',
1402
                'decimals' => 2,
1403
                'decimal_separator' => '.',
1404
                'thousands_separator' => ',',
1405
                'space_after_symbol' => false,
1406
            ],
1407
            [
1408
                'code' => 'YER',
1409
                'name' => 'Yemeni Rial',
1410
                'symbol' => '﷼',
1411
                'decimals' => 2,
1412
                'decimal_separator' => '.',
1413
                'thousands_separator' => ',',
1414
                'space_after_symbol' => false,
1415
            ],
1416
            [
1417
                'code' => 'ZWL',
1418
                'name' => 'Zimbabwean Dollar',
1419
                'symbol' => '$',
1420
                'decimals' => 2,
1421
                'decimal_separator' => '.',
1422
                'thousands_separator' => ',',
1423
                'space_after_symbol' => false,
1424
            ],
1425
        ]);
1426
1427
        DB::table((new Currency())->getTable())
1428
            ->insert($currencies);
1429
    }
1430
1431
    public function down(): void
1432
    {
1433
        // 1 way
1434
    }
1435
};
1436