Hello, I have the following table in the DB
Fruta
id | name | precio | fecha_compra
I would like to bring the total price of all purchased fruits grouped by months using eloquent or querybuuilder
the result that is but is the following:
{
"Enero" : "338$",
"Febrero" : "555$",
...
...
...
"Diciembre" : "100$"
}