Skip to content

Commit

Permalink
Merge branch 'release/2.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Trexology committed Oct 25, 2018
2 parents 127736f + 0cfd2b8 commit d98e89b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Latest Unstable Version](https://poser.pugx.org/trexology/reviewrateable/v/unstable)](https://packagist.org/packages/trexology/reviewrateable) [![License](https://poser.pugx.org/trexology/reviewrateable/license)](https://packagist.org/packages/trexology/reviewrateable)

# Laravel ReviewRateable
ReviewRateable system for laravel 5
ReviewRateable system for laravel 5.*

## Installation

Expand All @@ -13,7 +13,7 @@ First, pull in the package through Composer.
composer require trexology/reviewrateable
```

And then include the service provider within `app/config/app.php`.
And then include the service provider within `app/config/app.php`. (Skip this step if you are on Laravel 5.5 or above)

```php
'providers' => [
Expand Down
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,12 @@
"psr-4": {
"Trexology\\ReviewRateable\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"Trexology\\ReviewRateable\\ReviewRateableServiceProvider"
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ class CreateRatingsTable extends Migration
public function up()
{
Schema::create('ratings', function (Blueprint $table) {
$table->increments('id');
$table->integer('rating');
$table->increments('id')->unsigned();
$table->double('rating');
$table->string('title');
$table->string('body');
$table->text('body');
$table->morphs('reviewrateable');
$table->morphs('author');
$table->softDeletes();
$table->timestamps();
});
}
Expand Down
4 changes: 4 additions & 0 deletions src/Models/Rating.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
namespace Trexology\ReviewRateable\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;


class Rating extends Model
{
use SoftDeletes;

/**
* @var string
*/
Expand Down

0 comments on commit d98e89b

Please sign in to comment.