how to use GROUP_CONCAT in laravel : <pre><code>$assignment = assignment::find(Crypt::decrypt($id));
$assignment_details = $assignment-&gt;raw_plan()-&gt;groupBy('flag')-&gt;get();
</code></pre>

<p>I want to following result of this query in laravel</p>

<pre><code>SELECT GROUP_CONCAT(name) AS 'names' FROM `raw_plans` where `assignment_id` = 1 GROUP BY`flag`
</code></pre>

<p>Please suggest me how to use GROUP_CONCAT in laravel</p>
