1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

#47 - Adding comments to the dummy content seeder.

This commit is contained in:
Abijeet
2017-06-11 11:40:37 +05:30
parent 8dab31b87a
commit 9dbd7fa618
2 changed files with 14 additions and 1 deletions

View File

@ -70,4 +70,14 @@ $factory->define(BookStack\Image::class, function ($faker) {
'type' => 'gallery',
'uploaded_to' => 0
];
});
$factory->define(BookStack\Comment::class, function($faker) {
$text = $faker->paragraph(3);
$html = '<p>' . $text. '</p>';
return [
'html' => $html,
'text' => '#' . $text,
'active' => 1
];
});