laravel comma separated list where clause code example
Example: how can we check in the table in comma separated values in laravel
$search = 1;
$data = \DB::table("myposts")
->select("myposts.*")
->whereRaw("find_in_set('".$search."',myposts.tags)")
->get();