diff --git a/routes/web.php b/routes/web.php index bc534d72..a6135e40 100644 --- a/routes/web.php +++ b/routes/web.php @@ -96,7 +96,9 @@ Route::group(['middleware' => ['role:admin']], function() { })->get(); $customers = $bookings->groupBy(function($item) { return $item->user_id; - })->order(); + })->sortBy(function($item){ + return count($item); + }); echo "