20 lines
481 B
PHP
20 lines
481 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\RawMaterial;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class RawMaterialPriceFactory extends Factory
|
|
{
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'raw_material_id' => RawMaterial::factory(),
|
|
'variant' => fake()->words(2, true),
|
|
'price' => fake()->numberBetween(1000, 500000),
|
|
'stock' => round(fake()->randomFloat(2, 0, 1000), 2),
|
|
];
|
|
}
|
|
}
|