Skip to content

Commit

Permalink
changed "one-to-many" header (#9922)
Browse files Browse the repository at this point in the history
added " / Has Many" to the "One to Many" header and corresponding TOC line.
  • Loading branch information
LijahD99 authored Oct 2, 2024
1 parent f891b17 commit 70abbf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eloquent-relationships.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- [Introduction](#introduction)
- [Defining Relationships](#defining-relationships)
- [One to One](#one-to-one)
- [One to Many](#one-to-many)
- [One to Many / Has Many](#one-to-many)
- [One to Many (Inverse) / Belongs To](#one-to-many-inverse)
- [Has One of Many](#has-one-of-many)
- [Has One Through](#has-one-through)
Expand Down Expand Up @@ -148,7 +148,7 @@ If the parent model does not use `id` as its primary key, or you wish to find th
}

<a name="one-to-many"></a>
### One to Many
### One to Many / Has Many

A one-to-many relationship is used to define relationships where a single model is the parent to one or more child models. For example, a blog post may have an infinite number of comments. Like all other Eloquent relationships, one-to-many relationships are defined by defining a method on your Eloquent model:

Expand Down

0 comments on commit 70abbf2

Please sign in to comment.