Fixed GET category
This commit is contained in:
parent
a0cd66f5f2
commit
b93d5dd746
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user