BookStack\Http\Controllers\BookController::show PHP Method

show() public method

Display the specified book.
public show ( $slug ) : Response
$slug
return Response
    public function show($slug)
    {
        $book = $this->bookRepo->getBySlug($slug);
        $this->checkOwnablePermission('book-view', $book);
        $bookChildren = $this->bookRepo->getChildren($book);
        Views::add($book);
        $this->setPageTitle($book->getShortName());
        return view('books/show', ['book' => $book, 'current' => $book, 'bookChildren' => $bookChildren]);
    }