Просто нетърпеливо заредете връзката Промяна Bookshelf::find($id)->books до Bookshelf::with('books')->find($id)->books