From 04bd67573c3e71d98fc46733b515dd5c67ce4b9a Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 4 Jan 2022 20:23:47 +0800 Subject: [PATCH] fix yd fetch data --- routes/web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/web.php b/routes/web.php index 99d5ad8f..1e400c3a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -195,7 +195,7 @@ Route::get('/min_cbm', function (){ return $query->selectRaw('sum((width/100) * (height/100) * (length/100) * quantity) as cbm')->where('type', \App\Classes\ValueObjects\Constants\PackingListType::SHIPPING_PACKING_LIST)->where('status', '!=', 5)->having('cbm', '>', 0.3); }); }); - })->get(); + })->limit(1)->get(); foreach ($companies as $company) { echo route('customer.profile', $company->inviters()->withPivot('invitee_reference')->first()->pivot->invitee_reference).'
';