We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 372e943 + 357a546 commit b534c0eCopy full SHA for b534c0e
README.md
@@ -45,7 +45,10 @@ class Article extends \Illuminate\Database\Eloquent\Model {
45
#### Quick Sample Usage
46
47
```php
48
-$article = Article::with('tagged')->first(); // eager load
+$article = Article::with(['tagged' => function($query) {
49
+ $query->with('tag');
50
+ }])
51
+ ->first(); // eager load
52
53
foreach($article->tagged as $tagged) {
54
echo $tagged->tag_name . ' with url slug of ' . $tagged->tag_slug;
0 commit comments