From 8b5ac008d3a710a0241480c764df13cde84f9076 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Fri, 1 Oct 2021 19:37:12 +0800 Subject: [PATCH] customer report --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 8c51c96f..121266d5 100644 --- a/routes/web.php +++ b/routes/web.php @@ -158,7 +158,7 @@ Route::get('/report', function(){ } } - dd($customers->sortBy(function($customer){ + dd($customers->sortByDesc(function($customer){ return $customer['cbm']; }));