The code example below will return "Post" model that has greater than 6 comments.
<?php # Posts hasMany Comments $posts = Post::has('comments', '>', 6)->get();
257
3 years ago
0 comments
<?php # Posts hasMany Comments $posts = Post::has('comments', '>', 6)->get();
Frontend
Resource
Average
Average
No recent searches
Leave a reply