attributes['number'] - $this->attributes['number_remain']); } public function coupon() { return $this->hasOne(Coupon::class,'id','coupon_id'); } }