Answers for "how to use GROUP_CONCAT in select statement laravel query builder"

PHP
1

group_concat laravel

$assignment_details = $assignment->raw_plan()
                                ->select('raw_plans.*', DB::raw('group_concat(name) as names'))
                                ->where('assignment_id', 1)
                                ->groupBy('flag')
                                ->get();
Posted by: Guest on July-16-2020

Code answers related to "how to use GROUP_CONCAT in select statement laravel query builder"

Browse Popular Code Answers by Language