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++) {