Distinct unique in Laravel

Viewed 23

I am trying to get this sql query into Laravel's query builder

SELECT DISTINCT(razon), area_id FROM notas;

If i have this table

area_id Nombre    Razon    nota

1       Pepito    examen1  10
2       Maria     examen2  20
3       Pedro     examen1  10
0 Answers
Related