Good evening, I have a Category model and migration. My goal is to have a category and sub categor. Everything is smooth until I want a separate resources for category and sub category.
For example inside CategoryResource only have - Image - Name - Status
And in inside the SubCategoryResource will have - Image - Name - Category - Ststus
Any advice how to achieve this?
Solution
In CategoryResource, You need to modify the $table by adding