how to get relationship from relationship in laravel code example Example: laravel docs get relationship from relationship $books = Book::with('author.contacts')->get();