ldc-volena/database/factories/SectionFactory.php

22 lines
428 B
PHP
Raw Permalink Normal View History

2023-11-16 09:42:21 +01:00
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class SectionFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition()
{
return [
'h2_title' => fake()->text(70),
2024-02-26 10:34:05 +01:00
'text' => '<h3>H3 title</h3>' . \clean(\fake()->randomHtml(2, 1)),
2023-11-16 09:42:21 +01:00
];
}
}