I have two tables, topics and posts. I want to get only the topics that have no posts.
I tried to use order by, but then I have topics that have no posts and also some that have posts, so it's wrong.
Topic::where('locale', $locale)
->withCount('posts')
->orderBy('posts_count', 'ASC')
->paginate(15);