Fixed GET category

This commit is contained in:
Stepan 2025-12-30 18:11:35 +01:00
parent a0cd66f5f2
commit b93d5dd746

View File

@ -92,7 +92,8 @@ class CategoryController extends Controller
*/
public function show(Category $category)
{
return new CategoryResource($category->withCount('user_tests', 'questions'));
$category->loadCount(['user_tests', 'questions']);
return new CategoryResource($category);
}
/**