firefly-iii/database/seeds/TransactionCurrencySeeder.php

21 lines
566 B
PHP
Raw Normal View History

2015-02-05 21:41:00 -06:00
<?php
2015-02-05 22:01:24 -06:00
use FireflyIII\Models\TransactionCurrency;
2015-02-11 00:35:10 -06:00
use Illuminate\Database\Seeder;
2015-02-05 21:41:00 -06:00
/**
* Class TransactionCurrencySeeder
*/
class TransactionCurrencySeeder extends Seeder
{
public function run()
{
DB::table('transaction_currencies')->delete();
2015-06-29 08:23:50 -05:00
TransactionCurrency::create(['code' => 'EUR', 'name' => 'Euro', 'symbol' => '€']);
2015-02-11 00:35:10 -06:00
TransactionCurrency::create(['code' => 'USD', 'name' => 'US Dollar', 'symbol' => '$']);
TransactionCurrency::create(['code' => 'HUF', 'name' => 'Hungarian forint', 'symbol' => 'Ft']);
2015-02-05 21:41:00 -06:00
}
}