OwnerWayBillFeeDetailFactory.php 815 B

1234567891011121314151617181920212223
  1. <?php
  2. /** @var \Illuminate\Database\Eloquent\Factory $factory */
  3. use App\OwnerWayBillFeeDetail;
  4. use Faker\Generator as Faker;
  5. $factory->define(OwnerWayBillFeeDetail::class, function (Faker $faker) {
  6. $step = ['0-10000', '10000-50000', '50000-100000'];
  7. return [
  8. 'waybill_id' => rand(1, 100),
  9. 'util_id' => rand(1, 7),
  10. 'step' => $faker->randomElement($step),//计数区间
  11. 'fuel_fee' => rand(1, 100),//燃油附加费
  12. 'service_fee' => rand(1, 100),//信息费
  13. 'originate_fee' => rand(1, 100),//起始计费
  14. 'originate_count' => rand(1, 100), //起始计数
  15. 'price' => rand(1, 100),//起始计数
  16. 'delivery_fee' => rand(1, 100),//送货费
  17. 'created_at' => now()->subMonth(),
  18. 'updated_at' => now()->subMonth(),
  19. ];
  20. });