im new in laravel world n didn't know well how to write proper code. i have a query
SELECT c.cityname, count(distinct s.namep) as statecount FROM cities c INNER JOIN patiens s on c.id = s.cityidp GROUP BY c.cityname ORDER BY
statecountDESC;
output query like this
in my sql database, its work really well with output like i want, but the problem i can't implemented that query in laravel.
in that query i want get how many every city already used by patiens. thanks a lot for help before
