Answers for "laravel csv column values with comma"

PHP
0

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();
Posted by: Guest on December-17-2020

Code answers related to "laravel csv column values with comma"

Browse Popular Code Answers by Language