Skip to content

Commit e9a66fe

Browse files
committed
fix owner comments relation definition
1 parent a64a223 commit e9a66fe

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)