firefly-iii/database/seeds/TransactionCurrencySeeder.php

34 lines
1.5 KiB
PHP
Raw Normal View History

2015-02-05 21:41:00 -06:00
<?php
/**
* TransactionCurrencySeeder.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* 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.
*/
2017-03-25 07:41:17 -05:00
declare(strict_types=1);
2015-02-05 21:41:00 -06:00
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()
{
TransactionCurrency::create(['code' => 'EUR', 'name' => 'Euro', 'symbol' => '€', 'decimal_places' => 2]);
TransactionCurrency::create(['code' => 'USD', 'name' => 'US Dollar', 'symbol' => '$', 'decimal_places' => 2]);
TransactionCurrency::create(['code' => 'HUF', 'name' => 'Hungarian forint', 'symbol' => 'Ft', 'decimal_places' => 2]);
TransactionCurrency::create(['code' => 'BRL', 'name' => 'Real', 'symbol' => 'R$', 'decimal_places' => 2]);
TransactionCurrency::create(['code' => 'GBP', 'name' => 'British Pound', 'symbol' => '£', 'decimal_places' => 2]);
TransactionCurrency::create(['code' => 'IDR', 'name' => 'Indonesian rupiah', 'symbol' => 'Rp', 'decimal_places' => 2]);
TransactionCurrency::create(['code' => 'XBT', 'name' => 'Bitcoin', 'symbol' => 'B', 'decimal_places' => 8]);
2017-06-20 14:04:25 -05:00
TransactionCurrency::create(['code' => 'JPY', 'name' => 'Japanese yen', 'symbol' => '¥', 'decimal_places' => 2]);
2015-02-05 21:41:00 -06:00
}
2017-11-15 03:53:17 -06:00
}