akiyamaSM / larapoll

A Laravel package to manage your polls
MIT License
260 stars 58 forks source link

Frontend use #81

Closed rabol closed 5 years ago

rabol commented 5 years ago

Hi

As i want guest users to be able to vote I grabbed the dev-master version.

{{ PollWriter::draw(1) }}

does not work:

Inani\Larapoll\Helpers\PollWriter::draw() must be an instance of Inani\Larapoll\Poll, int given,

Did the usage change or is the read me wrong ?

akiyamaSM commented 5 years ago

Hey @rabol sorry I haven't changed the readme yet, now you should pass an instance of poll. I'll make it accept an id too later. thanks.

rabol commented 5 years ago

No problem :)

I changed so I pass a Poll instance, but all I get is:

"Thanks for voting"

rabol commented 5 years ago

ok.. I needed to update the poll Seems to be working

akiyamaSM commented 5 years ago

Thanks ^^. I'll be closing the issue then.

cedlinx commented 5 years ago

Hello All,

I know this closed but I've been stuck at "Thanks for voting" (even though I've not yet voted) and would like to know how @rabol got past that.

Thank you.