->where(function($q) use($rating)                     {                         $q->whereRaw('FLOOR(homechef_details.updated_rating) = '.$rating[0]);                         for($r = 0; $r < count($rating); $r++)                         {                            $q->orWhereRaw('FLOOR(homechef_details.updated_rating) = '.$rating[$r]);                         }                     });                 }             }         }