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
This has been fixed in https://github.com/rennokki/rating/releases/tag/2.0.1