define(OwnerLogisticFeeDetail::class, function (Faker $faker) { $province = ['北京', '广东省', '湖北省', '广东省', '四川省', '上海', '山西省', '上海', '江西省', '贵州省', '湖南省', '广东省', '云南省', '山东省', '贵州省', '云南省', '新疆维吾尔自治区', '辽宁省', '福建省']; $logistic_ids = \App\Logistic::query()->pluck('id')->toArray(); return [ 'logistic_bill' => $faker->uuid, 'initial_weight' => random_int(1, 100), 'initial_weight_price' => random_int(1, 100), 'additional_weight' => random_int(1, 100), 'additional_price' => random_int(1, 100), 'logistic_id' => $faker->randomElement($logistic_ids), 'province' => $faker->randomElement($province), 'owner_id' => random_int(1, 100), 'additional_weigh_weight' => random_int(1, 100), 'tax_fee' => random_int(1, 100), 'fee' => random_int(1, 100), 'created_at' => now()->subMonth()->startOfMonth()->addDays(random_int(1, 28))->toDateTimeString(), 'updated_at' => now()->subMonth()->startOfMonth()->addDays(random_int(1, 28))->toDateTimeString(), ]; });