firefly-iii/database/seeds/TransactionTypeSeeder.php
Antonio Spinelli b3d99cd210 apply demeter law for transaction type calls
- adds contants for transaction type names
- demeter law = never speaks with strangers
2015-12-10 16:53:48 -02:00

22 lines
552 B
PHP

<?php
use FireflyIII\Models\TransactionType;
use Illuminate\Database\Seeder;
/**
* 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]);
}
}