Install this package as a dependency using Composer.
(This is not actually published yet, as it is in pre-alpha. I do not follow semantic versioning, so use at your own risk)
composer require andrewtweber/laravel-polls
To publish the vendor files (this should happen automatically):
php artisan vendor:publish --provider="Andrewtweber\Providers\PollsServiceProvider"
This will publish the files config/polls.php
, migrations, translations, and views.
Add the VotesInPolls
trait to your user class.
If you have Laravel Nova, copy the src/Nova/*.stub
files into your Nova models directory.
This will allow you to create and update polls.
- Additional views not using Bootstrap
- More config options (User model, enable or disable guest votes, etc.)
- Named routes