2015-02-05 21:41:00 -06:00
|
|
|
<?php
|
2015-02-05 22:01:24 -06:00
|
|
|
use FireflyIII\Models\AccountType;
|
2015-02-11 00:35:10 -06:00
|
|
|
use Illuminate\Database\Seeder;
|
2015-02-05 21:41:00 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class AccountTypeSeeder
|
|
|
|
*/
|
|
|
|
class AccountTypeSeeder extends Seeder
|
|
|
|
{
|
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
DB::table('account_types')->delete();
|
|
|
|
|
|
|
|
AccountType::create(['type' => 'Default account', 'editable' => true]);
|
|
|
|
AccountType::create(['type' => 'Cash account', 'editable' => false]);
|
|
|
|
AccountType::create(['type' => 'Asset account', 'editable' => true]);
|
|
|
|
AccountType::create(['type' => 'Expense account', 'editable' => true]);
|
|
|
|
AccountType::create(['type' => 'Revenue account', 'editable' => true]);
|
|
|
|
AccountType::create(['type' => 'Initial balance account', 'editable' => false]);
|
|
|
|
AccountType::create(['type' => 'Beneficiary account', 'editable' => true]);
|
|
|
|
AccountType::create(['type' => 'Import account', 'editable' => false]);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|