13283339616 6 jaren geleden
bovenliggende
commit
034760f0a2
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      app/Api/V1/Controllers/FeaturesController.php

+ 1 - 1
app/Api/V1/Controllers/FeaturesController.php

@@ -271,7 +271,7 @@ class FeaturesController extends BaseController
271 271
     }
272 272
     public function theLastRecipes(Request $request){
273 273
         $data=Menu::where('status',1)->orderBy('created_at','desc')->limit(50)->get();
274
-        $initArr=Menu::where('status',1)->orderBy('created_at','desc')->limit(50)->pluck('menu_id');
274
+        $initArr=Menu::where('status',1)->orderBy('created_at','desc')->limit(50)->pluck('id');
275 275
         $initArr=json_decode(json_encode($initArr),true);
276 276
         $readArr=Menu::getReadNum($initArr);
277 277
         $discountArr=Menu::getCollectNum($initArr);