define(OwnerOutStorageRule::class, function (Faker $faker) { $strategy = ['默认','特征']; return [ "owner_price_operation_id" => factory(\App\OwnerPriceOperation::class), //作业计费ID "strategy" =>$strategy[array_rand($strategy)], //策略 "amount" =>mt_rand(0,100), //起步数 "unit_id" => factory(\App\Unit::class),//单位ID "unit_price" =>mt_rand(10,100) / 12, //单价 "feature" =>\Illuminate\Support\Str::random(6), //特征 ]; });