akiyamaSM / larapoll

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

Allow guest voting is not working. #86

Closed meesudzu closed 4 years ago

meesudzu commented 5 years ago

Checkbox "Allow to guests" in CRUD UI is not update to database. I see PollHandler:modify() dont have any code to update "canVisitorsVote". When I change it in database, "canVisitorsVote" from 0 to 1. It still show "Thanks for voting", I think it's a wrong condition in PollWriter::draw(), but i dont know how to override to fix it.

meesudzu commented 5 years ago

I have been fix it by change the PollWriter and PollHandler class in vendor folder, but I know this is a bad way. How can I override it in my project?