| 
									
										
										
										
											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
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-20 08:57:45 +02: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() | 
					
						
							|  |  |  |     { | 
					
						
							|  |  |  |         DB::table('transaction_currencies')->delete(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-29 15:23:50 +02:00
										 |  |  |         TransactionCurrency::create(['code' => 'EUR', 'name' => 'Euro', 'symbol' => '€']); | 
					
						
							| 
									
										
										
										
											2015-02-11 07:35:10 +01:00
										 |  |  |         TransactionCurrency::create(['code' => 'USD', 'name' => 'US Dollar', 'symbol' => '$']); | 
					
						
							|  |  |  |         TransactionCurrency::create(['code' => 'HUF', 'name' => 'Hungarian forint', 'symbol' => 'Ft']); | 
					
						
							| 
									
										
										
										
											2016-04-28 14:40:59 -03:00
										 |  |  |         TransactionCurrency::create(['code' => 'BRL', 'name' => 'Real', 'symbol' => 'R$']); | 
					
						
							| 
									
										
										
										
											2016-09-21 20:45:36 +01:00
										 |  |  |         TransactionCurrency::create(['code' => 'GBP', 'name' => 'British Pound', 'symbol' => '£']); | 
					
						
							| 
									
										
										
										
											2015-02-06 04:41:00 +01:00
										 |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | }  |