Skip to content

Commit

Permalink
Merge pull request #43 from 3m1n3nc3/fix-can-visit-trait
Browse files Browse the repository at this point in the history
Bug fix for CanVisit trait
  • Loading branch information
khanzadimahdi authored Aug 6, 2022
2 parents 29426d4 + fe0f8e6 commit e8268de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/CanVisit.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ trait CanVisit
*/
public function visitLogs()
{
return $this->morphMany(Visit::class, 'user');
return $this->morphMany(Visit::class, 'visitor');
}

/**
Expand Down

0 comments on commit e8268de

Please sign in to comment.