Ejemplo n.º 1
0
 function update($request)
 {
     $address = OrderAddressHistory::find($request['id']);
     if ($address) {
         $address = $this->setProperties($address, $request);
         $address->save();
         return $address;
     }
 }
Ejemplo n.º 2
0
 function getAddressByOrder($orderId)
 {
     return OrderAddressHistory::where('order_id', $orderId)->first();
 }