Skip to content

andrewtweber/laravel-polls

Repository files navigation

Laravel Polls

CircleCI

Installation

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.

Laravel Nova

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.

Todo

  • Additional views not using Bootstrap
  • More config options (User model, enable or disable guest votes, etc.)
  • Named routes

About

Polls for Laravel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published