6
0
Fork 0
release
李静 2021-12-31 19:27:25 +08:00
parent 2f78529cbd
commit e4e498aa08
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(['parent_id' => 2])->latest('sort')->get();
$categories = ProductCategory::filter(['pid' => 2])->latest('sort')->get();
return ProductCategoryResource::collection($categories);
}