OwnerStoreFeeDetailFactory.php 828 B

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