We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 747966a commit 8e46f1fCopy full SHA for 8e46f1f
user_guide_src/source/guides/api/code/014.php
@@ -9,7 +9,7 @@ class BookModel extends Model
9
public function withAuthorInfo()
10
{
11
return $this
12
- ->select('book.*, author.name as author_name')
13
- ->join('author', 'book.author_id = author.id');
+ ->select('books.*, authors.name as author_name')
+ ->join('authors', 'books.author_id = authors.id');
14
}
15
0 commit comments