I want to find out value from array with comma separated field. Here is my table structure
╔════╦══════════════╗ ║ id ║ columnA ║ ╠════╬══════════════╣ ║ 1 ║ [1,2,3,4,5 ] ║ ║ 2 ║ [6,2,4,5,8 ] ║ ╚════╩══════════════╝
If i provide "1" and columnA has match this 1 value from this array then fetch this row.
<?php
return $val = Model::where(1 exists in ColumnA then fetch this row)->first/get();
?>