The code below works, but I wanted to know how to do it all right in query , and if the way I'm setting it up is really the best way.
$query = Avaliar::select(DB::raw('COUNT(id) as contar'), DB::raw('SUM(nota) as total'))
->where('...
asked by
19.12.2017 / 05:14