<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\Feature;
use Faker\Generator as Faker;

$factory->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), //特征
    ];
});
