This commit is contained in:
Denis Duliçi
2021-02-07 01:10:22 +03:00
parent 53e12abe38
commit 94d3b5c020

View File

@ -25,7 +25,7 @@ class Transaction extends Factory
public function definition()
{
$types = array_merge($this->getIncomeTypes(), $this->getExpenseTypes());
$type = $this->faker->randomElement($types);
$type = $this->faker->randomElement($types);
$category_type = in_array($type, $this->getIncomeTypes()) ? 'income' : 'expense';