BookStack/database/factories/Activity/Models/CommentFactory.php

33 lines
651 B
PHP
Raw Normal View History

<?php
namespace Database\Factories\Activity\Models;
use Illuminate\Database\Eloquent\Factories\Factory;
class CommentFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
2023-05-17 12:56:55 -04:00
protected $model = \BookStack\Activity\Models\Comment::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
$text = $this->faker->paragraph(1);
$html = '<p>' . $text . '</p>';
return [
'html' => $html,
'parent_id' => null,
'local_id' => 1,
];
}
}