Open Mohamed-Nusry opened 2 years ago
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?
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?