Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ChadTaljaardt/0a84f878509f0ceeb33042deb1ceab45 to your computer and use it in GitHub Desktop.
Save ChadTaljaardt/0a84f878509f0ceeb33042deb1ceab45 to your computer and use it in GitHub Desktop.
public function referrals()
{
return $this->hasMany('App\Models\User', 'referred_by', 'affiliate_id');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment