renoki-co / rating

Laravel Eloquent Rating allows you to assign ratings to any model.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rating fails at checking instance of rateable model

victorighalo opened this issue · comments

When I attempt to rate a model after following the configurations i get false from this

! $model instanceof Rater && ! $model instanceof Rating in CanRate Trait

I believe the check should be: if (! $model instanceof Rateable && ! $this instanceof Rater) {

I believe the check should be: if (! $model instanceof Rateable && ! $this instanceof Rater) {

I copied the code from the Source code of the package