21 lines
514 B
PHP
21 lines
514 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Product;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class ProductVariantFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'product_id' => Product::factory(),
|
|
'name' => fake()->words(2, true),
|
|
'stock' => fake()->numberBetween(0, 1000),
|
|
'reject_stock' => fake()->numberBetween(0, 100),
|
|
'retail_stock' => fake()->numberBetween(0, 500),
|
|
];
|
|
}
|
|
}
|