Skip to content

Commit

Permalink
Merge pull request #12 from JayBizzle/dynamic_primary_key
Browse files Browse the repository at this point in the history
Don’t assume User model primary key is called `id`
  • Loading branch information
kyranb authored May 19, 2017
2 parents 9d7653a + 2f4af2b commit 5f3670c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TrackRegistrationAttribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function visits()
public function assignPreviousVisits()
{
return Visit::previousVisits()->update([
config('footprints.column_name') => $this->id
config('footprints.column_name') => $this->getKey(),
]);
}

Expand Down

0 comments on commit 5f3670c

Please sign in to comment.