How Did We Get the Four Gospels?

Why did only four Gospels come to be recognized as authoritative, while others faded from use in the early church?