The winter sale is on! ❄️ 25% off subscriptions for a limited time.
Laravel

Quick and Easy Nested Categories in Laravel

1 episode
20 mins
2 months ago

About this snippet

To solve a potentially unlimited amount of nested items like categories, you need more than recursive Eloquent relationships. Let's figure out how to easily build a tree of items with a single query, and use recursive Blade components to output the result.

Your teacher

Alex Garrett-Smith
Alex Garrett-Smith

Hey, I'm the founder of Codecourse and a full-stack developer of over 10 years.

snippet episodes

Want to stay in the loop about new content?
Of course you do.

© 2022 Codecourse Ltd. All Rights Reserved. Born in the UK.