无法将数组值分配给变量

我正在开发一个react native应用程序,我确实使用json stringify在体内发布了产品ID,但是在后端laravel中,我无法搜索具有这些产品ID的数据库记录..这是我的代码,用于react native.product ID声明为状态数组

onPlaceOrder=async ()=>{
console.log(this.state.product_id)
    var userToken = await AsyncStorage.getItem("userToken");
    fetch('http://xxx.xxx.xxx.xxx/tajroof/public/api/createSales', {
        method: 'POST',
        headers: {
            'Accept': 'application/json',
            'Content-Type': 'application/json',
            Authorization:`Bearer ${userToken}`,
        },
        body: JSON.stringify(
           this.state.product_id

        )

        }).then((response) => response.json())
            .then((responseJson) => {

            console.log(responseJson)
                // Alert.alert(responseJson.status);
                // this.setState({modalVisible:false})

        }).catch((error) => {
            alert(error);
        });

   }

这是我的laravel控制器代码

$myid=$request->all();


$length = count($myid);

for ($i = 0; $i < $length; $i++) {
  echo $myid[$i];
}

在这里,我的产品ID是2和5,我首先在控制台中获得了响应数组[2,5,],而在for循环之后,我得到了25.so,怎么可能用这两个不同的ID搜索数据库记录。 请提供代码帮助。您的帮助将不胜感激。