PHPackages                             zvermafia/lavoter - 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. zvermafia/lavoter

ActiveLibrary

zvermafia/lavoter
=================

Voteable Polymorphic Eloquent Models for Laravel 5 without user authentication. This means that for the identification of the user, we will use the fingerprintjs2 instead of authorization on the site.

v4.1.3(2mo ago)31.1k↓100%[2 issues](https://github.com/zvermafia/lavoter/issues)MITBladePHP &gt;=5.5.11CI failing

Since Apr 21Pushed 2mo agoCompare

[ Source](https://github.com/zvermafia/lavoter)[ Packagist](https://packagist.org/packages/zvermafia/lavoter)[ RSS](/packages/zvermafia-lavoter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (19)Used By (0)

Lavoter
=======

[](#lavoter)

Voteable Polymorphic Eloquent Models for Laravel 5 without user authentication. This means that for the identification of the user, we will use the [fingerprintjs2](http://valve.github.io/fingerprintjs2/) instead of authorization on the site.

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

[](#installation)

First, pull in the package through Composer.

```
composer require zvermafia/lavoter
```

Include the service provider within `config/app.php`.

```
'providers' => [
    // ...
    Zvermafia\Lavoter\LavoterServiceProvider::class
],
```

You need to publish and run the migration.

```
php artisan vendor:publish --provider="Zvermafia\Lavoter\LavoterServiceProvider"
php artisan migrate

```

To initialize the [fingerprintjs2](http://valve.github.io/fingerprintjs2/) and to set an uuid for the user you must to include a view part of this package to your site template. After the [fingerprintjs2](http://valve.github.io/fingerprintjs2/) initialized will be declared a global JavaScript variable with the name `lavoter_uuid`.

For example:

```

>

        @yield('title', 'The App Name')

        @yield('body')

        @include('lavoter::get')

```

To finish installing add a cookie name within `app/Http/Middleware/EncryptCookies.php`. For example:

```
