add welcome trans limit

This commit is contained in:
LI JIAHAO
2017-06-17 22:23:50 +08:00
parent cce8b4bc68
commit c47d805a3f
+1 -1
View File
@@ -26,7 +26,7 @@ class ContentController extends Controller
$data['catgoods'][$cat->cat_name] = GoodInfo::where('cat_id', $cat->id)->where('baned', false)->where('count', '>', 0)->inRandomOrder()->limit(4)->get();
}
$data['announces'] = Announcement::orderby('id', 'dsc')->limit(3)->get();
$data['trans'] = Transaction::where('status', '>', 3)->orderby('id', 'dsc')->get();
$data['trans'] = Transaction::where('status', '>', 3)->orderby('id', 'dsc')->limit(20)->get();
return View::make('welcome')->with($data);
}