define(Feature::class, function (Faker $faker) { $type = [0,1,2,3,4,5]; $logic = ['包含','不包含','等于']; return [ "type" => $type[array_rand($type)], //类型 "logic" => $logic[array_rand($logic)], //逻辑 "describe" => \Illuminate\Support\Str::random(5), //特征 ]; });