| 1234567891011121314151617 |
- <?php
- /** @var \Illuminate\Database\Eloquent\Factory $factory */
- use App\OwnerPriceOperation;
- use Faker\Generator as Faker;
- $factory->define(OwnerPriceOperation::class, function (Faker $faker) {
- $operation_type = ['入库','出库'];
- $strategy = ['默认','特征'];
- return [
- "operation_type"=>$operation_type[array_rand($operation_type)], //操作类型
- "name" =>$faker->name, //名称
- "strategy" =>$strategy[array_rand($strategy)], //策略
- "feature" =>\Illuminate\Support\Str::random(10), //特征
- "remark" =>$faker->text, //备注
- ];
- });
|