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