styling
This commit is contained in:
parent
53e12abe38
commit
94d3b5c020
|
|
@ -25,7 +25,7 @@ class Transaction extends Factory
|
||||||
public function definition()
|
public function definition()
|
||||||
{
|
{
|
||||||
$types = array_merge($this->getIncomeTypes(), $this->getExpenseTypes());
|
$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';
|
$category_type = in_array($type, $this->getIncomeTypes()) ? 'income' : 'expense';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue