]> BookStack Code Mirror - bookstack/blobdiff - database/factories/ModelFactory.php
Updated 'Spanish Argentina' translation.
[bookstack] / database / factories / ModelFactory.php
index ebf78d1fa4665251b4b0f570bc287f3f84e31093..c68f5c1e15ac8e4ce5ef86dc6e17be38a8a33928 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(1);
+    $html = '<p>' . $text. '</p>';
+    return [
+        'html' => $html,
+        'text' => $text,
+        'parent_id' => null
+    ];
 });
\ No newline at end of file