public function RecordPercentages() { return $this->belongsToMany(RecordPercentage::getClass())->withPivot('amount_affiliate', 'amount', 'consecutive'); }
function recordPercentage() { return \AccountHon\Entities\RecordPercentage::orderBy('id', 'DESC')->get()->last(); }