In this episode we are saving our subcategories into our database and attach to the main category. On the creation form we are do a foreach loop to get the select options displayed. In the next episode we will show our categories and subcategories in a Vue.js component and we will create the hasMany relation in our model.
Watch video Laravel 6 create subcategory for category and save it into database Laravel Bootstrap 4 (Part 6) online without registration, duration hours minute second in high quality. This video was added by user Code Fisher 03 March 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 7,10 once and liked it 8 people.