session()->flashInput(['name' => $chapter->name]);
return view('chapters.copy', [
- 'book' => $chapter->book,
+ 'book' => $chapter->book,
'chapter' => $chapter,
]);
}
/**
- * Create a copy of a page within the requested target destination.
+ * Create a copy of a chapter within the requested target destination.
*
* @throws NotFoundException
* @throws Throwable
if (is_null($newParentBook)) {
$this->showErrorNotification(trans('errors.selected_book_not_found'));
+
return redirect()->back();
}