how to group by two columns laravel code example
Example: laravel multiple group by
$routes = DB::table('route')
->groupBy('rte_origin', 'rte_destination')
->get();
$routes = DB::table('route')
->groupBy('rte_origin', 'rte_destination')
->get();