ldc-doux/database/factories/TextFactory.php
2021-12-15 10:09:39 +01:00

30 lines
539 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
*/
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),
];
}
}