ldc-doux/database/factories/TitleFactory.php

31 lines
557 B
PHP
Raw Permalink Normal View History

2021-12-13 16:55:12 +01:00
<?php
namespace Database\Factories;
use App\Models\Title;
use Illuminate\Database\Eloquent\Factories\Factory;
class TitleFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
2026-10-27 09:12:51 +01:00
#[\Override]
2021-12-13 16:55:12 +01:00
protected $model = Title::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'title' => $this->faker->text(5),
'text' => $this->faker->sentence(20),
];
}
}