Skip to content

Commit

Permalink
Merge pull request #61 from hafidd4/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue authored Apr 5, 2023
2 parents 5ae4732 + 0bc1279 commit cf369de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Like.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function likeable(): \Illuminate\Database\Eloquent\Relations\MorphTo
*/
public function user()
{
return $this->belongsTo(\config('auth.providers.users.model'), \config('like.user_foreign_key'));
return $this->belongsTo(\config('like.user_model'), \config('like.user_foreign_key'));
}

/**
Expand Down

0 comments on commit cf369de

Please sign in to comment.