PHPackages                             d35k/rating - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. d35k/rating

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

d35k/rating
===========

Rating syetem for Laravel 5

0.0.5(8y ago)164MITPHPPHP &gt;=5.5.9

Since Nov 1Pushed 8y agoCompare

[ Source](https://github.com/d35k/rating)[ Packagist](https://packagist.org/packages/d35k/rating)[ RSS](/packages/d35k-rating/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Laravel Rating
==============

[](#laravel-rating)

Rating system for laravel 5

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

[](#installation)

First, pull in the package through Composer.

```
composer require d35k/rating
```

or add this in your project's composer.json file .

```
"require": {
  "d35k/Rating": "^0",
}

```

And then include the service provider within `app/config/app.php`.

```
'providers' => [
    d35k\Rating\RatingServiceProvider::class
];
```

---

Getting started
---------------

[](#getting-started)

After the package is correctly installed, you need to generate the migration.

```
php artisan rating:migration

```

It will generate the `_create_ratings_table.php` migration. You may now run it with the artisan migrate command:

```
php artisan migrate

```

After the migration, one new table will be present, `ratings`.

Usage
-----

[](#usage)

### Setup a Model

[](#setup-a-model)

```
