create([ 'name' => 'Test User', 'email' => 'test@example.com', 'password' => Hash::make('password'), ]); $test_author = Author::factory()->user($test_user)->create(); Article::factory()->author($test_author)->count(50)->create(); $random_article = Article::where('id', '<', 10)->inRandomOrder()->first(); $random_article->body = ""; $random_article->save(); Subscriber::factory()->count(10)->create(); } }