I have below mysql query to run in laravel but i am not able to figure out how should i implement it.
Here is MYSQL query.
SELECT temp.*,count(temp.respondent_id) FROM (SELECT * FROM `responses` GROUP BY respondent_id) as temp GROUP BY DAY(`temp`.`created_at`)
I am getting expected result with it. Please help me out. Thanking you in advance.