session()->flashInput(['name' => $chapter->name]);
return view('chapters.copy', [
- 'book' => $chapter->book,
+ 'book' => $chapter->book,
'chapter' => $chapter,
]);
}
if (is_null($newParentBook)) {
$this->showErrorNotification(trans('errors.selected_book_not_found'));
+
return redirect()->back();
}