whereIn('id', $arr)->get(); if ($res){ return $res->toArray(); }else{ return []; } } }