Write the Eloquent expression that returns only posts that have at least one comment.
The homepage should only show posts that already have community engagement.
Ready to try it?
Create a free account and subscribe to take "Write a whereHas Query for Related Existence". Earn 90 XP and track your internship progress.
Already have an account? Sign in