laraveltherightway / laraveltherightway.github.io

Laravel Best Practices (previously Laravel The Right Way)
http://www.laravelbestpractices.com/
Other
300 stars 102 forks source link

Fix 'good example' pivot table name #68

Closed WaveHack closed 4 years ago

WaveHack commented 4 years ago

On Database Conventions > Table and Fields Naming > Pivot table, the Good examples include 'articles_user'.

I believe this should be 'article_user' (articles -> article) instead, due to singular naming conventions for pivot tables.

(I made this commit/PR using the GitHub site, and it also automatically did something on line 102 (with the ```). Not really sure what was going on here. If you want a new PR without this change, let me know. Although it shouldn't break anything.)

buonzz commented 4 years ago

@WaveHack I appreciate the fix! thank you