You will need to soak the salt cod for 24-48 hours before making the croquettes. Rinse the salt cod thoroughly and then put it in cold water to cover and seal the container. Change the water several times during the soaking period. You can taste the cod to see if it's sufficiently desalted. Once it's done soaking, drain the cod and continue with the recipe. If the cod is done and you're not ready, just put the drained cod back in the refrigerator.
When you are ready to make the batter, put the cod in a medium saucepan and add enough water to cover the cod by 1-2 inches. Add the bay leaf and bring the water to a simmer over medium low heat. Let the cod simmer for 10-12 minutes, or until you can easily flake the cod with a fork. Drain the cod and set aside until it's cooled enough for you to handle. Once the cod is cool enough, pick through the cod to remove any bones or skin, and then add it to a food processor and pulse until it is finely shredded.
In the same saucepan, bring the potatoes to a boil and cook until tender, about 10 minutes. Drain and mash the potato in a large bowl. Add the shredded cod, garlic, and parsley. Season with salt and pepper as needed to your taste.
Once again in the same saucepan, add the water and oil and bring to a boil over medium heat. Sprinkle the rice flour into the water while stirring constantly. Keep stirring until the batter is smooth. (You can also use a whisk. I have found that a whisk makes for a smoother batter. However, the batter will get stuck in the whisk and need to be shaken out.) Take the saucepan off the heat and let it cool for a few minutes while you continue to stir. Add the eggs one at a time, stirring each in until fully combined. Now it's time to add the cod. Add it in and combine thoroughly. Let the batter cool to room temperature.
To fry the croquettes, fill a high-sided pot with about 3 inches of vegetable oil and heat over medium heat until the oil reaches 350F. Adjust the heat as needed to keep the oil near 350F. Add batter by the spoonful to the oil and cook for 2-3 minutes, or until golden brown. Transfer the croquettes to a towel lined plate and, either eat immediately, or move them to a cooling rack set over a baking sheet. When you are ready to eat, heat them in a 350F oven until hot and crisp.