firefly-iii/database/seeds/TransactionTypeSeeder.php

22 lines
552 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\TransactionType;
2015-02-11 00:35:10 -06:00
use Illuminate\Database\Seeder;
2015-02-05 21:41:00 -06:00
/**
* Class TransactionTypeSeeder
*/
class TransactionTypeSeeder extends Seeder
{
public function run()
{
DB::table('transaction_types')->delete();
TransactionType::create(['type' => TransactionType::WITHDRAWAL]);
TransactionType::create(['type' => TransactionType::DEPOSIT]);
TransactionType::create(['type' => TransactionType::TRANSFER]);
TransactionType::create(['type' => TransactionType::OPENING_BALANCE]);
2015-02-05 21:41:00 -06:00
}
}