dimanche 27 mai 2018

Nested query for getting distinct category and there associated sub-category Laravel

I am working on laravel code, i am finding difficulty in getting nested query for sub-category list. My table structure is, column name below id | category_name | cat_head 1 | ultra slim suit | suit 2 | slim suit | suit 3 | Shoes | shoes 4 | Hats | accessories 5 | Cufflinks | accessories

now i want cat_head as main menu and category_name under it. Kindly help me in laravel eloquent way.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire