mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-14 07:07:21 +08:00
fee9045dac
Opened #4821 to remove the DB field in a few releases time.
33 lines
651 B
PHP
33 lines
651 B
PHP
<?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
|
|
*/
|
|
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,
|
|
];
|
|
}
|
|
}
|