From af72bb1a9bc55c09b3d260b4c6499a5a6520692e Mon Sep 17 00:00:00 2001 From: root Date: Sun, 27 Oct 2019 21:02:32 +0800 Subject: [PATCH] update --- app/Http/Controllers/OrderController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/OrderController.php b/app/Http/Controllers/OrderController.php index d8d45f90..d6729b1b 100755 --- a/app/Http/Controllers/OrderController.php +++ b/app/Http/Controllers/OrderController.php @@ -17,6 +17,7 @@ class OrderController extends Controller { public function index (Request $request) { $order = Order::where('user_id', $request->session()->get('id')) + ->orderBy('created_at', 'DESC') ->get(); $plan = Plan::get(); for($i = 0; $i < count($order); $i++) {