find in set in laravel ? example
PHP Snippet 1:
->whereRaw("FIND_IN_SET('css',tags)")
PHP Snippet 2:
DB::table('tags_value')->whereRaw("find_in_set('php',tags)")....
PHP Snippet 3:
$restaurants = Restaurant::whereRaw('FIND_IN_SET("'.$request->code.'",restaurant_code)')->get();
PHP Snippet 4:
$value = '2';
Vendor::whereRaw('FIND_IN_SET("'.$value.'",service_industries)')->count();