2015-02-06 04:41:00 +01:00
|
|
|
<?php
|
2016-09-17 07:57:32 +02:00
|
|
|
/**
|
|
|
|
|
* AccountTypeSeeder.php
|
|
|
|
|
* Copyright (C) 2016 thegrumpydictator@gmail.com
|
|
|
|
|
*
|
2016-10-05 06:52:15 +02:00
|
|
|
* 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.
|
2016-09-17 07:57:32 +02:00
|
|
|
*/
|
|
|
|
|
|
2016-05-20 08:57:45 +02:00
|
|
|
declare(strict_types = 1);
|
|
|
|
|
|
2015-02-06 05:01:24 +01:00
|
|
|
use FireflyIII\Models\AccountType;
|
2015-02-11 07:35:10 +01:00
|
|
|
use Illuminate\Database\Seeder;
|
2015-02-06 04:41:00 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class AccountTypeSeeder
|
|
|
|
|
*/
|
|
|
|
|
class AccountTypeSeeder extends Seeder
|
|
|
|
|
{
|
|
|
|
|
public function run()
|
|
|
|
|
{
|
|
|
|
|
DB::table('account_types')->delete();
|
|
|
|
|
|
2016-06-17 14:06:38 +02:00
|
|
|
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']);
|
2015-02-06 04:41:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|