Skip to content

Commit 865ef29

Browse files
committed
Going with the safer option.
1 parent 535b3fb commit 865ef29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Tricks/Repositories/Eloquent/ProfileRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function createFromGithubData(OAuthUser $details, User $user, $token)
5353
$profile->description = $details->description;
5454
$profile->image_url = $details->imageUrl;
5555
$profile->access_token = $token;
56-
$profile->user = $user;
56+
$profile->user_id = $user->id;
5757

5858
$profile->save();
5959

0 commit comments

Comments
 (0)