In this post I wanted to share a simple solution to save any level of nested categories in a MySQL database table and retrieve them using Laravel Eloquent models and their relationships. This means that you’ll be able to store and retrieve any number of categories > subcategories > sub subcategories… (you get the idea) using one database table.
