ldc-gen-game-web/database/factories/ProductFactory.php
Jérémy Munsch 232bc2f459
Tons of Bo fixes related to product and ranges,
add picture alt and titles + seeders + correct config
picture sizes
2023-11-29 15:33:23 +01:00

27 lines
681 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Product>
*/
class ProductFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => 'product ' . \fake()->jobTitle(),
// * EAN 13 generate
'code_ean' => fake()->randomNumber(8, true) . fake()->randomNumber(5, true),
'picture_alt' => fake()->sentence(),
'picture_title' => fake()->sentence(),
];
}
}