You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documentation inconsistency: singular vs plural table names in API guide #10057
The API guide contains an inconsistency between the Database Setup page and the Controller page when referring to table names.
On the Database Setup page, the migrations create tables using plural names
However, on the Controller page, the withAuthorInfo() method in BookModel uses singular table names in both the select() and join():
public function withAuthorInfo()
{
return $this
->select('book.*, author.name as author_name')
->join('author', 'book.author_id = author.id');
}
Steps to Reproduce
Follow the guide for rest api
Expected Output
Update the guide to use "correct" plural table names or update the migration =)
Activity
[-]Bug: Incorrect[/-][+]Documentation inconsistency: singular vs plural table names in API guide[/+]Fix: Update withAuthorInfo() to use plural table names
AlexRasch commentedon Mar 21, 2026
Create a fix for this issue and open a pull request: #10058