Class · extends AbstractModel
Client affiliate information
If a WHMCS operator turns on the affiliate payment system, then a client account can become an affiliate. An affiliate record is attached to a specific client and provides configuration information to the affiliate system so that client can handle payments and commissions. It also tracks the balance available, amount withdrawn, and the number of visitors an affiliate has brought to an operator's WHMCS installation.
public static function boot()public function accounts(): Relationpublic function client()Each affiliate belongs to one client.
Returns \Illuminate\Database\Eloquent\Relations\BelongsTo
public function history(): Relationpublic function hits(): Relationpublic function referrers(): Relationpublic function withdrawals(): Relationpublic function pending(): Relationpublic function getReferralLink(): stringpublic function getAdminLink(): stringpublic function getFullAdminUrl(): stringpublic function getPendingCommissionAmountAttribute(): float