hasOne(Registration::class); } public function votes() { return $this->hasMany(Vote::class); } }