ldc-legaulois/database/factories/MeatFactory.php

29 lines
719 B
PHP
Raw Normal View History

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