public function postPreviewComment($preview_key) { try { $version = $this->pageRepository->getVersionByPreviewKey($preview_key); $this->pageRepository->addVersionComment($version, Input::all()); return Redirect::to('pages/preview/' . $preview_key)->with('comment_saved', true); } catch (PageVersionNotFound $exception) { return App::abort('404'); } catch (ValidationException $exception) { return Redirect::to('pages/preview/' . $preview_key)->with('invalid_fields', $exception->getInvalidFields())->withInput(); } }