Got the tree view working

This commit is contained in:
Dan Brown
2015-07-20 22:05:26 +01:00
parent 52cf7e4483
commit da2ba4d9f3
13 changed files with 223 additions and 21 deletions

View File

@ -78,7 +78,9 @@ class BookController extends Controller
public function show($slug)
{
$book = $this->bookRepo->getBySlug($slug);
return view('books/show', ['book' => $book]);
$pageTree = $this->pageRepo->getTreeByBookId($book->id);
// dd($pageTree);
return view('books/show', ['book' => $book, 'pageTree' => $pageTree]);
}
/**