define(OwnerPriceLogisticDetail::class, function (Faker $faker) { $province = \App\Province::query()->first(); $city = \App\City::query()->where("province_id",$province->id)->first(); return [ // "owner_price_logistic_id" => factory(\App\OwnerPriceLogistic::class), //物流计费 // "unit_id" => factory(\App\Unit::class), //单位ID "range" => "0-5", //区间 "province_id" => $province->id, //省份ID "city_id" => $city->id, //城市ID "unit_price" => mt_rand(1,36) / 3, //单价 "delivery_fee" => mt_rand(1,136) / 3, //送货费 "initial_fee" => mt_rand(1,136) / 3, //起始计费 "initial_amount" => mt_rand(1,136) / 3, //起始计数 "rate" => mt_rand(1,136) / 3, //费率 ]; });