且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Laravel验证程序由于数组到字符串的转换而失败

更新时间:2023-02-15 16:54:20

刚刚发现我有Ardent的$forceEntityHydrationFromInput = true,并且由于将其作为数组提交的事实而无法直接从Input提取我的输入以进行验证部分引用的值.

Just discovered I had Ardent's $forceEntityHydrationFromInput = true and my input cannot be pulled directly from Input for validation purposes due to the fact that it is submitted as an array of partially referenced values.

要解决此问题,请更改为$forceEntityHydrationFromInput = false并使用标准输入验证过程,而不要依赖Ardent的魔力.

To fix this, change to $forceEntityHydrationFromInput = false and use standard input validation procedure instead of relying on Ardent's magic.

有时候聪明的软件包太聪明了.

Sometimes clever packages are too clever.