2021-10-30 16:29:59 -04:00
|
|
|
<?php
|
|
|
|
|
2023-05-24 04:06:15 -04:00
|
|
|
namespace Database\Factories\Activity\Models;
|
2021-10-30 16:29:59 -04:00
|
|
|
|
|
|
|
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;
|
2021-10-30 16:29:59 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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,
|
2024-01-31 09:22:04 -05:00
|
|
|
'local_id' => 1,
|
2021-10-30 16:29:59 -04:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|