...
|
...
|
@@ -89,8 +89,8 @@ class UserAddress extends Model |
|
|
if($data['isdefault'] == '1'){
|
|
|
self::where('user_id',$this['user_id'])->update(['isdefault'=>'0']);
|
|
|
}
|
|
|
return $this->allowField(true)
|
|
|
->save(array_merge(compact('province_id', 'city_id', 'district_id'), $data), ['id'=>$this['id']]);
|
|
|
return $this->get($this['id'])->allowField(true)
|
|
|
->save(array_merge(compact('province_id', 'city_id', 'district_id'), $data));
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|