28 lines
783 B
PHP
28 lines
783 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class LocalCommitmentFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition()
|
|
{
|
|
return [
|
|
'title' => fake()->sentence(),
|
|
'text' => \clean(\fake()->randomHtml(6, 7)),
|
|
'picture1_alt' => fake()->sentence(),
|
|
'picture1_title' => fake()->sentence(),
|
|
'picture2_alt' => fake()->sentence(),
|
|
'picture2_title' => fake()->sentence(),
|
|
'picture3_alt' => fake()->sentence(),
|
|
'picture3_title' => fake()->sentence(),
|
|
'published' => false,
|
|
];
|
|
}
|
|
}
|