0 && Recipe::count() > 0) { Recipe::each(static function ($recipe): void { User::inRandomOrder() ->first() ->author_of_recipe() ->attach($recipe->id); }); } } }