| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /** @var \Illuminate\Database\Eloquent\Factory $factory */
- use App\OwnerStoreOutFeeDetail;
- use Faker\Generator as Faker;
- $factory->define(OwnerStoreOutFeeDetail::class, function (Faker $faker) {
- $step = ['0-20000', '20000-50000', '50000-100000'];
- return [
- 'owner_fee_detail_id' => random_int(1, 100),
- 'commodity_id' => random_int(1, 100),
- 'owner_id' => random_int(1, 100),
- 'source_bill' => $faker->uuid,
- 'owner_price_operation_id' => random_int(1, 100),
- 'unit_price' => random_int(1, 100),
- 'unit_id' => random_int(1, 10),
- 'amount' => random_int(1, 100),
- 'step' => $faker->randomElement($step),
- 'price_remark' => '起步费:2.2元(5件以内),续费:0.2元/件',
- 'created_at' => now()->subMonth()->startOfMonth()->addDays(random_int(0, 28)),
- 'updated_at' => now()->subMonth()->startOfMonth()->addDays(random_int(0, 28)),
- ];
- });
|