ldc-doux/database/factories/TextFactory.php
2026-10-27 09:12:51 +01:00

30 lines
555 B
PHP

<?php
namespace Database\Factories;
use App\Models\Text;
use Illuminate\Database\Eloquent\Factories\Factory;
class TextFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
#[\Override]
protected $model = Text::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'title' => $this->faker->text(5),
'text' => $this->faker->paragraph(10),
];
}
}