public function index(Request $request){ $params = $request->all(); $id = $params['ids']; if (strpos($id, ',') !== false) { $ids = explode(',',$id); } else{ $ids =[$id]...