How to GROUP BY multiple column in Laravel?
I tried this code:
$routes = DB::table(\'route\')
->groupBy(\'rte_origin\')
->groupBy(
Did you try:
$routes = DB::table('route')
->groupBy('rte_origin', 'rte_destination')
->get();
Can't test here right now, but the API says groupBy() accepts an array.
For reference, please visit: