| 12345678910111213141516171819202122 |
- <?php
- /** @var \Illuminate\Database\Eloquent\Factory $factory */
- use App\OwnerStoreFeeDetail;
- use Faker\Generator as Faker;
- $factory->define(OwnerStoreFeeDetail::class, function (Faker $faker) {
- //['owner_fee_detail_id', 'unit_id', 'unit_price', 'amount', 'owner_id', 'store_item_id','owner_price_operation_id']
- return [
- //
- 'owner_fee_detail_id' => random_int(1,100),
- 'owner_price_operation_id' => random_int(1, 100),
- 'unit_id' => random_int(1, 11),
- 'unit_price' => mt_rand(10, 100),
- 'amount' => mt_rand(10, 100),
- 'owner_id' => 8,
- 'store_item_id' =>random_int(1,100),
- 'created_at' => now()->subMonth()->startOfMonth()->addDays(random_int(0, 28)),
- 'updated_at' => now()->subMonth()->startOfMonth()->addDays(random_int(0, 28)),
- ];
- });
|