belongsTo(User::class, 'recommended_by'); } public function votes() { return $this->hasMany(Vote::class); } }