firefly-iii/database/seeds/AccountTypeSeeder.php

36 lines
964 B
PHP

<?php
/**
* AccountTypeSeeder.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
declare(strict_types = 1);
use FireflyIII\Models\AccountType;
use Illuminate\Database\Seeder;
/**
* Class AccountTypeSeeder
*/
class AccountTypeSeeder extends Seeder
{
public function run()
{
DB::table('account_types')->delete();
AccountType::create(['type' => 'Default account']);
AccountType::create(['type' => 'Cash account']);
AccountType::create(['type' => 'Asset account']);
AccountType::create(['type' => 'Expense account']);
AccountType::create(['type' => 'Revenue account']);
AccountType::create(['type' => 'Initial balance account']);
AccountType::create(['type' => 'Beneficiary account']);
AccountType::create(['type' => 'Import account']);
}
}