Skip to content

Commit b967f72

Browse files
committed
wip
1 parent 70abbf2 commit b967f72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eloquent-relationships.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
- [Introduction](#introduction)
44
- [Defining Relationships](#defining-relationships)
5-
- [One to One](#one-to-one)
5+
- [One to One / Has One](#one-to-one)
66
- [One to Many / Has Many](#one-to-many)
77
- [One to Many (Inverse) / Belongs To](#one-to-many-inverse)
88
- [Has One of Many](#has-one-of-many)
@@ -68,7 +68,7 @@ Eloquent relationships are defined as methods on your Eloquent model classes. Si
6868
But, before diving too deep into using relationships, let's learn how to define each type of relationship supported by Eloquent.
6969

7070
<a name="one-to-one"></a>
71-
### One to One
71+
### One to One / Has One
7272

7373
A one-to-one relationship is a very basic type of database relationship. For example, a `User` model might be associated with one `Phone` model. To define this relationship, we will place a `phone` method on the `User` model. The `phone` method should call the `hasOne` method and return its result. The `hasOne` method is available to your model via the model's `Illuminate\Database\Eloquent\Model` base class:
7474

0 commit comments

Comments
 (0)