| 
									
										
										
										
											2015-02-06 04:41:00 +01:00
										 |  |  | <?php | 
					
						
							| 
									
										
										
										
											2016-09-17 07:57:32 +02:00
										 |  |  | /** | 
					
						
							|  |  |  |  * TransactionCurrencySeeder.php | 
					
						
							|  |  |  |  * Copyright (C) 2016 thegrumpydictator@gmail.com | 
					
						
							|  |  |  |  * | 
					
						
							| 
									
										
										
										
											2016-10-05 06:52:15 +02:00
										 |  |  |  * This software may be modified and distributed under the terms of the | 
					
						
							|  |  |  |  * Creative Commons Attribution-ShareAlike 4.0 International License. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * See the LICENSE file for details. | 
					
						
							| 
									
										
										
										
											2016-09-17 07:57:32 +02:00
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-25 13:41:17 +01:00
										 |  |  | declare(strict_types=1); | 
					
						
							| 
									
										
										
										
											2015-02-06 04:41:00 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-02-06 05:01:24 +01:00
										 |  |  | use FireflyIII\Models\TransactionCurrency; | 
					
						
							| 
									
										
										
										
											2015-02-11 07:35:10 +01:00
										 |  |  | use Illuminate\Database\Seeder; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-02-06 04:41:00 +01:00
										 |  |  | /** | 
					
						
							|  |  |  |  * Class TransactionCurrencySeeder | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | class TransactionCurrencySeeder extends Seeder | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     public function run() | 
					
						
							|  |  |  |     { | 
					
						
							| 
									
										
										
										
											2017-11-18 21:03:28 +01:00
										 |  |  |         // european currencies
 | 
					
						
							| 
									
										
										
										
											2016-12-28 22:21:55 +01:00
										 |  |  |         TransactionCurrency::create(['code' => 'EUR', 'name' => 'Euro', 'symbol' => '€', 'decimal_places' => 2]); | 
					
						
							|  |  |  |         TransactionCurrency::create(['code' => 'HUF', 'name' => 'Hungarian forint', 'symbol' => 'Ft', 'decimal_places' => 2]); | 
					
						
							|  |  |  |         TransactionCurrency::create(['code' => 'GBP', 'name' => 'British Pound', 'symbol' => '£', 'decimal_places' => 2]); | 
					
						
							| 
									
										
										
										
											2017-11-18 21:03:28 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // american currencies
 | 
					
						
							|  |  |  |         TransactionCurrency::create(['code' => 'USD', 'name' => 'US Dollar', 'symbol' => '$', 'decimal_places' => 2]); | 
					
						
							|  |  |  |         TransactionCurrency::create(['code' => 'BRL', 'name' => 'Brazilian real', 'symbol' => 'R$', 'decimal_places' => 2]); | 
					
						
							|  |  |  |         TransactionCurrency::create(['code' => 'CAD', 'name' => 'Canadian dollar', 'symbol' => 'C$', 'decimal_places' => 2]); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         // oceanian currencies
 | 
					
						
							| 
									
										
										
										
											2016-12-28 22:21:55 +01:00
										 |  |  |         TransactionCurrency::create(['code' => 'IDR', 'name' => 'Indonesian rupiah', 'symbol' => 'Rp', 'decimal_places' => 2]); | 
					
						
							| 
									
										
										
										
											2017-11-18 21:03:28 +01:00
										 |  |  |         TransactionCurrency::create(['code' => 'AUD', 'name' => 'Australian dollar', 'symbol' => 'A$', 'decimal_places' => 2]); | 
					
						
							|  |  |  |         TransactionCurrency::create(['code' => 'AUD', 'name' => 'New Zealand dollar', 'symbol' => 'NZ$', 'decimal_places' => 2]); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         // african currencies
 | 
					
						
							|  |  |  |         TransactionCurrency::create(['code' => 'EGP', 'name' => 'Egyptian pound', 'symbol' => 'E£', 'decimal_places' => 2]); | 
					
						
							|  |  |  |         TransactionCurrency::create(['code' => 'MAD', 'name' => 'Moroccan dirham', 'symbol' => 'DH', 'decimal_places' => 2]); | 
					
						
							|  |  |  |         TransactionCurrency::create(['code' => 'ZAR', 'name' => 'South African rand', 'symbol' => 'R', 'decimal_places' => 2]); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         // asian currencies
 | 
					
						
							| 
									
										
										
										
											2017-06-20 21:04:25 +02:00
										 |  |  |         TransactionCurrency::create(['code' => 'JPY', 'name' => 'Japanese yen', 'symbol' => '¥', 'decimal_places' => 2]); | 
					
						
							| 
									
										
										
										
											2017-11-18 21:03:28 +01:00
										 |  |  |         TransactionCurrency::create(['code' => 'RMB', 'name' => 'Chinese yuan', 'symbol' => '元', 'decimal_places' => 2]); | 
					
						
							|  |  |  |         TransactionCurrency::create(['code' => 'RUB', 'name' => 'Russian ruble ', 'symbol' => '₽', 'decimal_places' => 2]); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         // international currencies
 | 
					
						
							|  |  |  |         TransactionCurrency::create(['code' => 'XBT', 'name' => 'Bitcoin', 'symbol' => '₿', 'decimal_places' => 8]); | 
					
						
							|  |  |  |         TransactionCurrency::create(['code' => 'BCH', 'name' => 'Bitcoin cash', 'symbol' => '₿C', 'decimal_places' => 8]); | 
					
						
							|  |  |  |         TransactionCurrency::create(['code' => 'ETH', 'name' => 'Ethereum', 'symbol' => 'Ξ', 'decimal_places' => 12]); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-02-06 04:41:00 +01:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2017-11-15 10:53:17 +01:00
										 |  |  | } |