Skip to content

Commit

Permalink
Merge pull request laravel#1692 from nunomira/5.1
Browse files Browse the repository at this point in the history
text correction
  • Loading branch information
taylorotwell committed Jul 20, 2015
2 parents 097714e + d4fac60 commit 5a2228c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eloquent-relationships.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

<?php

Expand Down

0 comments on commit 5a2228c

Please sign in to comment.