DEV Community

Discussion on: 6 Quick & Easy Ways to Speed Up Your Laravel Website

Collapse
acho_arnold profile image
αςнο αяηοℓδ • Edited

Nice read Ash. A little typo

As you can see, this code looks almost the same and is still readable. By adding the ::with('authors') this will fetch all of the comments and then make another query to fetch the comments at once.

should be

As you can see, this code looks almost the same and is still readable. By adding the ::with('authors') this will fetch all of the comments and then make another query to fetch the authors at once.

Collapse
ashallendesign profile image
Ash Allen Author

Ooops! Thanks for spotting that, I'll get it updated now!