PHPackages                             hannoma/larapolls - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. hannoma/larapolls

ActivePackage[Admin Panels](/categories/admin)

hannoma/larapolls
=================

Create, view and manage polls in Laravel Framework

v1.0.2(8y ago)2581MITHTML

Since Apr 2Pushed 8y agoCompare

[ Source](https://github.com/Hannoma/larapolls)[ Packagist](https://packagist.org/packages/hannoma/larapolls)[ RSS](/packages/hannoma-larapolls/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Larapolls
=========

[](#larapolls)

Laravel package for displaying, creating and managing polls with permissions!

---

[Demo](https://hannoma.de/projekte/larapolls)

[In use](https://hannoma.de/polls)

---

- [Installation](#installation)
- [Configuration](#configuration)
    - [Localization](#localization)
    - [Views](#views)
- [Usage](#usage)
    - [Permission Setup](#permission-setup)
    - [Displaying Polls](#displaying-polls)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require hannoma/larapolls
```

In Laravel 5.5 the service provider will automatically get registered. In older versions of the framework just add the service provider in `config/app.php` file:

```
'providers' => [
    // ...
    Hannoma\Larapolls\LarapollsServiceProvider::class,
];
```

You can publish the package files with:

```
php artisan vendor:publish --provider="Hannoma\Larapolls\LarapollsServiceProvider"
```

Because this package uses [spatie/laravel-permission](https://github.com/spatie/laravel-permission) for the permissions, you should publish the migration files of that package too:

```
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="migrations"
```

After the migration has been published you can create the poll and permission-tables by running the migrations:

```
php artisan migrate
```

Configuration
-------------

[](#configuration)

All important configuration options can be found in the `config/larapolls.php` file:

```
