2018-03-03 07:48:36 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use App\Models\Enums\ExpenseType;
|
|
|
|
use Faker\Generator as Faker;
|
|
|
|
|
|
|
|
$factory->define(App\Models\Expense::class, function (Faker $faker) {
|
|
|
|
return [
|
|
|
|
'id' => null,
|
2018-03-06 12:49:42 +08:00
|
|
|
'airline_id' => null,
|
2018-03-03 07:48:36 +08:00
|
|
|
'name' => $faker->text(20),
|
|
|
|
'amount' => $faker->randomFloat(2, 100, 1000),
|
|
|
|
'type' => ExpenseType::FLIGHT,
|
|
|
|
'multiplier' => false,
|
2018-03-06 11:24:49 +08:00
|
|
|
'ref_class' => \App\Models\Expense::class,
|
|
|
|
'ref_class_id' => null,
|
2018-03-03 07:48:36 +08:00
|
|
|
'active' => true,
|
|
|
|
];
|
|
|
|
});
|