O'Reilly logo
  • GIL EG thinks this is interesting:

$books = Book::all(); // some operations here... $books->load('author', 'categories');

From

Cover of Learning Laravel's Eloquent

Note

eager loading in the middle of an operation