2015-02-06 04:41:00 +01:00
|
|
|
<?php
|
2016-09-17 07:57:32 +02:00
|
|
|
/**
|
|
|
|
|
* TransactionTypeSeeder.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
|
|
|
*/
|
|
|
|
|
|
2017-03-25 13:41:17 +01:00
|
|
|
declare(strict_types=1);
|
2016-05-20 08:57:45 +02:00
|
|
|
|
2015-02-06 05:01:24 +01:00
|
|
|
use FireflyIII\Models\TransactionType;
|
2015-02-11 07:35:10 +01:00
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
2015-02-06 04:41:00 +01:00
|
|
|
/**
|
|
|
|
|
* Class TransactionTypeSeeder
|
|
|
|
|
*/
|
|
|
|
|
class TransactionTypeSeeder extends Seeder
|
|
|
|
|
{
|
|
|
|
|
public function run()
|
|
|
|
|
{
|
2015-12-09 22:39:50 -02:00
|
|
|
TransactionType::create(['type' => TransactionType::WITHDRAWAL]);
|
|
|
|
|
TransactionType::create(['type' => TransactionType::DEPOSIT]);
|
|
|
|
|
TransactionType::create(['type' => TransactionType::TRANSFER]);
|
|
|
|
|
TransactionType::create(['type' => TransactionType::OPENING_BALANCE]);
|
2015-02-06 04:41:00 +01:00
|
|
|
}
|
2017-11-15 10:53:17 +01:00
|
|
|
}
|