Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voting for a poll #115

Open
Mohamed-Nusry opened this issue Jan 14, 2022 · 0 comments
Open

Voting for a poll #115

Mohamed-Nusry opened this issue Jan 14, 2022 · 0 comments

Comments

@Mohamed-Nusry
Copy link

Mohamed-Nusry commented Jan 14, 2022

Hey.

First of all I had to say this is an amazing package. It makes easy to create a poll.

My issue is after created a poll when voting how should I find the selected answer ID. in the route method it comes only poll ID

$voter->poll($poll)->vote($voteFor->getKey());

Above one is the code u have mentioned in the doc. But from where $voteFor variable comes? how to get it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant