ldc-legaulois/database/factories/DiscountFactory.php
2024-10-24 08:45:29 +00:00

26 lines
711 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class DiscountFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => fake()->word(),
'desktop_image_available' => '',
'desktop_image_unavailable' => '',
'mobile_image_available' => '',
'mobile_image_unavailable' => '',
'code' => fake()->numberBetween(1, 10000),
'value' => fake()->randomFloat(1, 1, 100),
];
}
}