Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Retrieve all posts that have at least one comment...
- $posts = AppPost::has('comments')->get();
- $posts = AppPost::has('comments', '<', 1)->get();
- $posts = AppPost::doesntHave('comments')->get();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement