Рет қаралды 16,229
Want more? Explore the library at codecourse.com
Official site
www.codecourse.com
Twitter
/ teamcodecourse
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.