Closed jasminetracey closed 7 years ago
You figured it out? The above should work, depending on how your published
and latest
query scopes are written.
But, you could always do:
$articles = Article::published()->latest()->paginate(7);
$articles->load('tags');
...
yes i did
How do i get all tags when returning a collection?
Article::with('tags')->published() ->latest() ->paginate(7);
This does not work