ldc-doux/database/factories/TitleFactory.php
2022-07-27 14:53:32 +02:00

29 lines
540 B
PHP

<?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
*/
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),
];
}
}