waybill = $waybill; } /** * Execute the job. * * @return void * * @throws */ public function handle() { $order = Order::query()->where("code",$this->waybill->wms_bill_number)->first(); if ($order)$this->waybill->update(["order_id"=>$order->id]); else throw new \Exception("order does not exist"); } }