BookStack\Http\Controllers\ChapterController::create PHP Method

create() public method

Show the form for creating a new chapter.
public create ( $bookSlug ) : Response
$bookSlug
return Response
    public function create($bookSlug)
    {
        $book = $this->bookRepo->getBySlug($bookSlug);
        $this->checkOwnablePermission('chapter-create', $book);
        $this->setPageTitle('Create New Chapter');
        return view('chapters/create', ['book' => $book, 'current' => $book]);
    }