View All Posts By An Author

Written by Laracasts / Original link on Apr. 29, 2021

Now that we can associate a blog post with an author, the next obvious step is to create a new route that renders all blog posts written by a particular author. While we're here, this will also give us a chance to review how to eager load relationships when you already have an existing model instance.


« Modelling time - File watching with chokidar »