From f96321c85440847b079b7953d2cc16897a786527 Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Tue, 18 Oct 2022 13:48:37 +0800 Subject: [PATCH] list customer with delayed shipment --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index c6cc169c..aec23be7 100644 --- a/routes/web.php +++ b/routes/web.php @@ -432,7 +432,7 @@ Route::get('/delayed_container/customers', function(){ return $query->where('etd', '>', \Carbon\Carbon::parse('15-10-2022')); }); })->get(); -dd($containers); + $orders = $containers->map(function($container){ return $container->orders; })->flatten()->unique(function($order){