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

29 lines
809 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class TestimonialFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'catchline' => fake()->text(25),
'content' => fake()->text(150),
'identity' => fake()->name(),
'job' => fake()->jobTitle(),
'picture' => '',
'picture_alt' => fake()->sentence(),
'picture_title' => fake()->sentence(),
'video_id' => fake()->boolean(25) ? '6B4O-_1CQoI' : '',
'order' => 1,
'published' => fake()->boolean(75),
];
}
}