Свойство | Тип | Описание | |
---|---|---|---|
$bookRepo | |||
$chapterRepo | |||
$userRepo |
Метод | Описание | |
---|---|---|
__construct ( |
ChapterController constructor. | |
create ( $bookSlug ) : Response | Show the form for creating a new chapter. | |
destroy ( $bookSlug, $chapterSlug ) : Response | Remove the specified chapter from storage. | |
edit ( $bookSlug, $chapterSlug ) : Response | Show the form for editing the specified chapter. | |
move ( $bookSlug, $chapterSlug, Illuminate\Http\Request $request ) : mixed | Perform the move action for a chapter. | |
restrict ( $bookSlug, $chapterSlug, Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | |
Set the restrictions for this chapter. | |
show ( $bookSlug, $chapterSlug ) : Response | Display the specified chapter. | |
showDelete ( $bookSlug, $chapterSlug ) : Illuminate\View\View | Shows the page to confirm deletion of this chapter. | |
showMove ( $bookSlug, $chapterSlug ) : mixed | Show the page for moving a chapter. | |
showRestrict ( $bookSlug, $chapterSlug ) : Illuminate\Contracts\View\Factory | Illuminate\View\View | Show the Restrictions view. | |
store ( $bookSlug, Illuminate\Http\Request $request ) : Response | Store a newly created chapter in storage. | |
update ( Illuminate\Http\Request $request, $bookSlug, $chapterSlug ) : Response | Update the specified chapter in storage. |
public __construct ( |
||
$bookRepo | ||
$chapterRepo | ||
$userRepo |
public create ( $bookSlug ) : Response | ||
$bookSlug | ||
Результат | Response |
public destroy ( $bookSlug, $chapterSlug ) : Response | ||
$bookSlug | ||
$chapterSlug | ||
Результат | Response |
public edit ( $bookSlug, $chapterSlug ) : Response | ||
$bookSlug | ||
$chapterSlug | ||
Результат | Response |
public restrict ( $bookSlug, $chapterSlug, Illuminate\Http\Request $request ) : Illuminate\Http\RedirectResponse | |
||
$bookSlug | ||
$chapterSlug | ||
$request | Illuminate\Http\Request | |
Результат | Illuminate\Http\RedirectResponse | |
public show ( $bookSlug, $chapterSlug ) : Response | ||
$bookSlug | ||
$chapterSlug | ||
Результат | Response |
public showDelete ( $bookSlug, $chapterSlug ) : Illuminate\View\View | ||
$bookSlug | ||
$chapterSlug | ||
Результат | Illuminate\View\View |
public showRestrict ( $bookSlug, $chapterSlug ) : Illuminate\Contracts\View\Factory | Illuminate\View\View | ||
$bookSlug | ||
$chapterSlug | ||
Результат | Illuminate\Contracts\View\Factory | Illuminate\View\View |
public store ( $bookSlug, Illuminate\Http\Request $request ) : Response | ||
$bookSlug | ||
$request | Illuminate\Http\Request | |
Результат | Response |
public update ( Illuminate\Http\Request $request, $bookSlug, $chapterSlug ) : Response | ||
$request | Illuminate\Http\Request | |
$bookSlug | ||
$chapterSlug | ||
Результат | Response |