OwnerPriceDirectLogisticCarFactory.php 603 B

123456789101112131415
  1. <?php
  2. /** @var \Illuminate\Database\Eloquent\Factory $factory */
  3. use App\OwnerPriceDirectLogisticCar;
  4. use Faker\Generator as Faker;
  5. $factory->define(OwnerPriceDirectLogisticCar::class, function (Faker $faker) {
  6. return [
  7. // "owner_price_direct_logistic_id" => factory(\App\OwnerPriceDirectLogistic::class), //直发车计费ID
  8. // "car_type_id" => factory(\App\CarType::class), //车型ID
  9. "base_fee" => mt_rand(6,250) / 4, //起步费
  10. "additional_fee" => mt_rand(6,250) / 4, //续费(元/KM)
  11. ];
  12. });