How to Create Categories and Subcategories using Laravel

Today we are going to learn how to create categories and subcategories in your Laravel project. We will use a project from our last tutorial as a starting point. If you want a source code you can download it from here and checkout to user-authentication tag to get to the starting point: