Skip to content

Commit 6259f89

Browse files
authored
Merge pull request #652 from Laravel-Backpack/fix-owner-comment-relation
fix owner comments relation definition
2 parents a64a223 + e9a66fe commit 6259f89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/PetShop/Owner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function avatar()
4646

4747
public function comments()
4848
{
49-
return $this->morphMany(\App\Models\PetShop\Comment::class, 'commentable', null, null, 'user_id');
49+
return $this->morphMany(Comment::class, 'commentable');
5050
}
5151

5252
public function badges()

0 commit comments

Comments
 (0)