Browse Source

Add a comment that will fail automoderation

axkuhta 1 year ago
parent
commit
fca2fd97c2
1 changed files with 6 additions and 1 deletions
  1. 6 1
      app/Console/Commands/LoadSampleData.php

+ 6 - 1
app/Console/Commands/LoadSampleData.php

@@ -41,7 +41,12 @@ class LoadSampleData extends Command
 			"name" => "somebody",
 			"email" => "a@mail.ru",
 			"content" => "Ну и дичь",
-			"status" => Comment::STATUS_PUBLISHED
+        ]);
+
+        $article->comments()->create([
+			"name" => "bodysome",
+			"email" => "b@mail.ru",
+			"content" => "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
         ]);
 
 		$article = new Article;