How I can use the Date function of Mysql on the created_at column in the groupBy method for grouping based on the date without time?

How it is possible to have the result of groupBy(DATE(‘created_at’))?