We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7467a79 + 3728ccd commit 9ccd2a7Copy full SHA for 9ccd2a7
src/Models/Rating.php
@@ -32,7 +32,7 @@ class Rating extends Model
32
*/
33
public function reviewrateable()
34
{
35
- return $this->morphTo();
+ return $this->morphTo(__FUNCTION__, 'reviewable_type', 'reviewable_id');
36
}
37
38
/**
0 commit comments