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

edit() public method

Show the form for editing the specified book.
public edit ( $slug ) : Response
$slug
return Response
    public function edit($slug)
    {
        $book = $this->bookRepo->getBySlug($slug);
        $this->checkOwnablePermission('book-update', $book);
        $this->setPageTitle('Edit Book ' . $book->getShortName());
        return view('books/edit', ['book' => $book, 'current' => $book]);
    }