From b7fb9573fbf5c955ace7d839cbb899a34e4a7add Mon Sep 17 00:00:00 2001 From: saparatayev Date: Wed, 9 Mar 2022 16:28:55 +0500 Subject: [PATCH] fix: show my product by id --- .../apigenerator/controllers/api/ProductsApiController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/ahmadfatoni/apigenerator/controllers/api/ProductsApiController.php b/plugins/ahmadfatoni/apigenerator/controllers/api/ProductsApiController.php index d7290923a..799827aa5 100644 --- a/plugins/ahmadfatoni/apigenerator/controllers/api/ProductsApiController.php +++ b/plugins/ahmadfatoni/apigenerator/controllers/api/ProductsApiController.php @@ -1,5 +1,6 @@ user->products()->with([ + $data = \JWTAuth::parseToken()->authenticate()->products()->with([ 'translations:locale,model_id,attribute_data', 'images:attachment_id,attachment_type,disk_name,file_name', 'measure.translations:locale,model_id,attribute_data',