In the official documentation for Laravel there is an example where we can set additional parameters when loading relations, through a lazy download.
Here is an example
$users = App\User::with(['posts' => function ($query) { $query->select('id', 'login'); }])->get();
How can I do the same for nested relationships? Suppose I need fields only the name of the book, the date of writing, and the surname of the author.
$users = App\User::with(['book.author'])->get();