I need to eager load multiple relationships in Laravel, but I can't find out how to do it. In Laravel Doc, it shows how to do it only for one relationship, like:
$books = Book::with('author.contacts')->get();
I need something like:
$books = Book::with(array('author'=>array('contacts', 'groups', 'orders')))->get();
Any ideas?