How would this query be done in Eloquent? – Laravel
I am learning to use the laravel eloquent and I have this query SELECT SUM(precio_total) FROM `venta` GROUP BY (MONTH(fecha)); So far i wear this $cantidad_venta = Venta::select('SUM(PRECIO_TOTAL) as suma_precio') ->groupBy('MONTH(fecha)') ->get(); I try to go through axios, but it…