If you mean "had a good time":
* a passé un bon moment: This is the most common and direct translation.
* a bien passé: This is a more concise way to say "had a good time."
* a été bien: This is more literal and translates to "was good," but can also be used for "had a good time."
If you mean "had a good meal":
* a bien mangé: This translates to "ate well."
* a bien profité du repas: This translates to "enjoyed the meal."
If you mean "had a good sleep":
* a bien dormi: This translates to "slept well."
Example sentences:
* J'ai passé un bon moment au restaurant. (I had a good time at the restaurant.)
* J'ai bien mangé. (I had a good meal.)
* J'ai bien dormi. (I had a good sleep.)
Remember to choose the translation that best fits the context of your sentence.