hasMany(Group::class); } public function hasVoted(){ return $this->hasMany(hasVoted::class); } }