define(App\Models\Expense::class, function (Faker $faker) { return [ 'id' => null, 'airline_id' => function () { return factory(App\Models\Airline::class)->create()->id; }, 'name' => $faker->text(20), 'amount' => $faker->randomFloat(2, 100, 1000), 'type' => ExpenseType::FLIGHT, 'multiplier' => false, 'active' => true, ]; });