Skip to content
Discussion options

You must be logged in to vote

The solution was to change my relationship in my User model:

public function spouse()
{
-    return $this->hasOne(User::class, 'spouse_id');
+    return $this->belongsTo(User::class, 'spouse_id');
}

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@prescriptionlifeline
Comment options

@prescriptionlifeline
Comment options

@prescriptionlifeline
Comment options

@prescriptionlifeline
Comment options

Answer selected by prescriptionlifeline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants