how to load relation with where clause in laravel code example Example: laravel load relation on a relation $books = Book::with('author.contacts')->get();