Support the ongoing development of Laravel.io →

orthohinnoman

Joined 10 Nov 2016

Statistics

Threads 1
Replies 2
Solutions 0
Articles 0

How to select table data in orderby id desc then groupby name in laravel 5.3?

I do this but can not work.. DB::table("office_costing_zone") ->orderBy("id",...

0 Likes
2 Replies
replied 7 years ago

How to select table data in orderby id desc then groupby name in laravel 5.3?

It work in row php as like SELECT * FROM (SELECT * FROM table1 ORDER BY id DESC) table GROUP BY name...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.