ldc-legaulois/database/factories/RangeFactory.php
2024-04-16 11:07:16 +02:00

30 lines
901 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
class RangeFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition()
{
$label = fake()->sentence();
return [
'label' => $label,
'slug' => Str::slug($label),
'description' => fake()->sentence(),
'banner_alt' => fake()->sentence(),
'banner_title' => fake()->sentence(),
'banner_ambiance_alt' => fake()->sentence(),
'banner_ambiance_title' => fake()->sentence(),
'color' => fake()->unique()->safeHexColor(),
'published' => fake()->boolean(75),
];
}
}