feat: Implement comprehensive product management, including categories, pricing, and integration into the order system.

This commit is contained in:
pbao9
2026-02-12 14:29:29 +07:00
parent 3b1beef66e
commit f3a679d7f3
25 changed files with 577 additions and 692 deletions
+6 -2
View File
@@ -22,12 +22,16 @@ class ApiAuthCheck
if (!Auth::guard($checkGuard)->check()) {
return response()->json([
'error' => true,
'message' => 'Unauthorized. Access Denied.',
'data' => [],
'message' => 'Vui lòng đăng nhập để thực hiện!',
'code' => 401
], 401);
}
// Ensure request user is set for the controller
$request->setUserResolver(function () use ($checkGuard) {
return Auth::guard($checkGuard)->user();
});
return $next($request);
}
}