|
|
|
|
271
|
}
|
271
|
}
|
272
|
public function theLastRecipes(Request $request){
|
272
|
public function theLastRecipes(Request $request){
|
273
|
$data=Menu::where('status',1)->orderBy('created_at','desc')->limit(50)->get();
|
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
|
$initArr=json_decode(json_encode($initArr),true);
|
275
|
$initArr=json_decode(json_encode($initArr),true);
|
276
|
$readArr=Menu::getReadNum($initArr);
|
276
|
$readArr=Menu::getReadNum($initArr);
|
277
|
$discountArr=Menu::getCollectNum($initArr);
|
277
|
$discountArr=Menu::getCollectNum($initArr);
|