Update
parent
2f78529cbd
commit
e4e498aa08
|
|
@ -17,7 +17,7 @@ class ProductCategoryController extends Controller
|
||||||
*/
|
*/
|
||||||
public function index(Request $request)
|
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);
|
return ProductCategoryResource::collection($categories);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue