6
0
Fork 0
release
李静 2021-12-31 18:04:11 +08:00
parent f05e5fc2fc
commit e08be76805
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class ProductCategoryController extends Controller
*/
public function index(Request $request)
{
$categories = ProductCategory::filter($request->all())->latest('sort')->get();
$categories = ProductCategory::filter(['parent_id' => 2])->latest('sort')->get();
return ProductCategoryResource::collection($categories);
}