We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaea8e7 commit 3728ccdCopy full SHA for 3728ccd
src/Models/Rating.php
@@ -21,7 +21,7 @@ class Rating extends Model
21
*/
22
public function reviewrateable()
23
{
24
- return $this->morphTo();
+ return $this->morphTo(__FUNCTION__, 'reviewable_type', 'reviewable_id');
25
}
26
27
/**
0 commit comments