feat: Implement nested product category display in admin datatable with expandable rows.

This commit is contained in:
pbao9
2026-02-11 17:30:20 +07:00
parent 556b2c02e6
commit 99b61bfb51
5 changed files with 108 additions and 15 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class ProductCategories extends Model
public function children()
{
return $this->hasMany(ProductCategories::class, 'parent_id');
return $this->hasMany(ProductCategories::class, 'parent_id')->with('children');
}
public function products()