Inhere

Results 154 comments of Inhere

`'required|string:8,20|regexp:{$regexp["password"]}'` 外层换为 双引号 PHP才会解析里面的变量 `"required|string:8,20|regexp:{$regexp['password']}"`

readme 上有一些示例呀,位置有限就展示了些比较全的示例。 要看更多的使用,可以看单元测试里面。

对的。单元测试里有各种规则的使用,有没覆盖到的欢迎补充 :)

这个readme 上是写了怎么用的 ![image](https://user-images.githubusercontent.com/5302062/132613620-df10a92e-461d-4690-9117-811f773e47af.png)

因为 `required*` 检查,字段都可能不存在。这一类型的检查都是先检查字段是否存在,再检查值是否有效 后续的其他验证器,都是直接检查值了。

@dongasai :) 有兴趣的可以话可以clone 一个。调整下逻辑看看能不能跑通单元测试。我之前是发现有问题才这样分开的。

hi @yoh if use wildcard `*`, will skip apply filters. :(