Update laravel/documentation/database/eloquent.md
minor grammar update in docs
This commit is contained in:
parent
00edb1db8c
commit
f53f07df4a
|
@ -261,7 +261,7 @@ ### Many-To-Many
|
|||
user_id - INTEGER
|
||||
role_id - INTEGER
|
||||
|
||||
Tables contain many records and are consequently plural. Pivot tables used in **has\_many\_and\_belongs\_to** relationships are named by combining the singular names of the two related models arranged alphabetically and concatenated them with an underscore.
|
||||
Tables contain many records and are consequently plural. Pivot tables used in **has\_many\_and\_belongs\_to** relationships are named by combining the singular names of the two related models arranged alphabetically and concatenating them with an underscore.
|
||||
|
||||
Now you're ready to define the relationship on your models using the **has\_many\_and\_belongs\_to** method:
|
||||
|
||||
|
|
Loading…
Reference in New Issue