diff --git a/routes/web.php b/routes/web.php index 84cbacd0..63fb91f1 100644 --- a/routes/web.php +++ b/routes/web.php @@ -141,7 +141,9 @@ Route::get('/customer/{marking}/details', function ($marking) { Route::get('/orders/refresh', function(\Illuminate\Http\Request $request){ $packingLists = \App\Models\PackingList::where('type', \App\Classes\ValueObjects\Constants\PackingListType::WAREHOUSE_RECEIVE_LIST)->has('containers')->get(); - dd($packingLists); + dd($packingLists->each(function (\App\Models\PackingList $packingList) { + $packingList->containers()->detach(); + })); // FetchWarehouseReceiveListFromVTPortalJob::withChain([ // new FetchLoadedContainersFromVTPortalJob,