]> BookStack Code Mirror - bookstack/blobdiff - database/factories/ModelFactory.php
Added migration file.
[bookstack] / database / factories / ModelFactory.php
index ebf78d1fa4665251b4b0f570bc287f3f84e31093..b03e34b9b9c63d0a4f05edc687366582ff6ba894 100644 (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
+    ];
 });
\ No newline at end of file