OwnerStoreOutFeeDetailFactory.php 825 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /** @var \Illuminate\Database\Eloquent\Factory $factory */
  3. use App\OwnerStoreOutFeeDetail;
  4. use Faker\Generator as Faker;
  5. $factory->define(OwnerStoreOutFeeDetail::class, function (Faker $faker) {
  6. return [
  7. 'owner_fee_detail_id' => random_int(1, 100),
  8. 'commodity_id' => random_int(1, 100),
  9. 'owner_id' => random_int(1, 100),
  10. 'source_bill' => $faker->uuid,
  11. 'work_name' => $faker->title,
  12. 'unit_price' => random_int(1, 100),
  13. 'unit_id' => random_int(1, 10),
  14. 'amount' => random_int(1, 100),
  15. 'remark' => $faker->sentence,
  16. 'step' => $faker->title,
  17. 'created_at' => now()->subMonth()->startOfMonth()->addDays(random_int(0, 28)),
  18. 'updated_at' => now()->subMonth()->startOfMonth()->addDays(random_int(0, 28)),
  19. ];
  20. });