Melt the butter in a large heavy pot over low heat. Add the onions, carrots, and garlic and cook, covered, over low heat until the vegetables are tender and lightly colored, about 25 minutes.
Add the parsley, thyme, and bay leaf and pour in the stock. Drain the beans and stir them into the pot. Bring to a boil, reduce the heat, and simmer, partially covered, un