find in set in laravel ? example
<p>I am new in laravel. My query is i need to find out value from comma separated field.</p>
<p>Here is my table:</p>
<p><strong>tags_value</strong></p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>id</th>
<th>tags</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>css,html,php</td>
</tr>
<tr>
<td>2</td>
<td>php,java,css</td>
</tr>
<tr>
<td>3</td>
<td>java,c++,ios</td>
</tr>
</tbody>
</table>
</div>
<p>This is my SQL query:</p>
<pre><code>$query = DB::table('tags_value')
         -&gt;whereRaw(FIND_IN_SET('css', Tags))
         -&gt;get();
</code></pre>
<p>but it's not working.</p>
<p>Please help me to solve this problem.
Thanks in advance.</p>