Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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();
 
PREVIOUS NEXT
Tagged: #check #table #comma #separated #values #laravel
ADD COMMENT
Topic
Name
8+7 =