duanbipu7601 2014-10-30 13:39
浏览 801
已采纳

Laravel验证 - 使用数组作为NOT_IN的列表

I want to use th rule:

not_in:foo,bar,...

But instead of providing the strings like in the example I would like to provide an array.

I know that I can just implode the array to the string but I would like to know if Laravel has an in-built function for that?

  • 写回答

1条回答 默认 最新

  • douqiaoru2583 2014-10-30 14:14
    关注

    Laravel doesn't have build in functionality for this. But as you said you can simply use implode for this

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?