feat: introduce ProductCategoryResource and refactor database migrations by deleting old tables and consolidating transaction schema.

This commit is contained in:
pbao9
2026-02-18 21:44:31 +07:00
parent 9a2cab4521
commit 75791d6257
12 changed files with 76 additions and 163 deletions
@@ -3,6 +3,7 @@
namespace App\Http\Controllers\Api\Service;
use App\Http\Controllers\Controller;
use App\Http\Resources\Api\Service\ProductCategoryResource;
use App\Http\Resources\Api\Service\ServiceResource;
use App\Models\Product;
use App\Models\ProductCategories;
@@ -63,7 +64,7 @@ class ProductCategoryController extends Controller
return response()->json([
'error' => false,
'message' => 'Lấy dữ liệu thành công',
'data' => $categories,
'data' => ProductCategoryResource::collection($categories),
]);
}