ldc-gen-game-web/database/factories/FaqQuestionFactory.php

28 lines
531 B
PHP
Raw Permalink Normal View History

2023-11-30 11:10:02 +01:00
<?php
2026-10-02 12:09:46 +02:00
declare(strict_types=1);
2023-11-30 11:10:02 +01:00
namespace Database\Factories;
2026-10-02 12:09:46 +02:00
use App\Models\FaqQuestion;
2023-11-30 11:10:02 +01:00
use Illuminate\Database\Eloquent\Factories\Factory;
/**
2026-10-02 12:09:46 +02:00
* @extends Factory<FaqQuestion>
2023-11-30 11:10:02 +01:00
*/
class FaqQuestionFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'question' => 'Question ' . fake()->safeColorName() . ' ?',
2026-10-02 12:09:46 +02:00
'answer' => fake()->randomHtml(),
2023-11-30 11:10:02 +01:00
];
}
}