是否可以在我将集合传递给的 View 中使用 where
例如:我有一个集合作为 $statuses
传递给我的 View 。
在 View 中,我想出于统计目的过滤集合:
有没有可能做这样的事情?
{{ $statuses->where('category', '=', 'open')->count() }}
最佳答案
关于Laravel:在 View 中使用 "where"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41162316/