You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -73,7 +73,7 @@ Additionally, Eloquent assumes that the foreign key should have a value matching
#### Defining The Inverse Of The Relation
So, we can access the `Phone` model from our `User`. Now, let's define a relationship on the `Phone` model that will let us access the `User`the owns the phone. We can define the inverse of a `hasOne` relationship using the `belongsTo` method:
So, we can access the `Phone` model from our `User`. Now, let's define a relationship on the `Phone` model that will let us access the `User`that owns the phone. We can define the inverse of a `hasOne` relationship using the `belongsTo` method: