Method |
Description |
|
__construct ( BookRepo $bookRepo, PageRepo $pageRepo, ChapterRepo $chapterRepo, UserRepo $userRepo ) |
BookController constructor. |
|
create ( ) : Response |
Show the form for creating a new book. |
|
destroy ( $bookSlug ) : Response |
Remove the specified book from storage. |
|
edit ( $slug ) : Response |
Show the form for editing the specified book. |
|
getSortItem ( $bookSlug ) : Illuminate\Contracts\View\Factory | Illuminate\View\View |
Shows the sort box for a single book. |
|
index ( ) : Response |
Display a listing of the book. |
|
restrict ( $bookSlug, Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector |
Set the restrictions for this book. |
|
saveSort ( string $bookSlug, Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | Redirector |
Saves an array of sort mapping to pages and chapters. |
|
show ( $slug ) : Response |
Display the specified book. |
|
showDelete ( $bookSlug ) : Illuminate\View\View |
Shows the page to confirm deletion |
|
showRestrict ( $bookSlug ) : Illuminate\Contracts\View\Factory | Illuminate\View\View |
Show the Restrictions view. |
|
sort ( string $bookSlug ) : Illuminate\View\View |
Shows the view which allows pages to be re-ordered and sorted. |
|
store ( Illuminate\Http\Request $request ) : Response |
Store a newly created book in storage. |
|
update ( Illuminate\Http\Request $request, $slug ) : Response |
Update the specified book in storage. |
|