OwnerReportFactory.php 707 B

1234567891011121314151617
  1. <?php
  2. /** @var \Illuminate\Database\Eloquent\Factory $factory */
  3. use App\OwnerReport;
  4. use Faker\Generator as Faker;
  5. $factory->define(OwnerReport::class, function (Faker $faker) {
  6. return [
  7. "owner_id" => factory(App\Owner::class), //货主ID
  8. "counting_month" => $faker->date(), //结算月
  9. "daily_average_order_amount" => mt_rand(0,10000), //日均单量
  10. "current_month_counting_area" => mt_rand(100,100000) / 50, //结算月盘点面积
  11. "last_month_counting_area" => mt_rand(100,100000) / 50, //结算月上月盘点面积
  12. "owner_bill_report_id" =>factory(App\OwnerBillReport::class) //账单ID
  13. ];
  14. });