/** * @param string $hash * @param string $new_revised * @return \Illuminate\Http\RedirectResponse */ public function changeStatus($hash, $new_revised) { $revised = $this->checkRevised($new_revised); if ($revised === false) { abort(404); } $comment = $this->comment->byHash($hash); $comment->revised = $revised; $comment->save(); $this->tracert->log('comments', $comment->id, $this->auth_user->id, $new_revised); $message = trans('blogify::notify.comment_success', ['action' => $new_revised]); session()->flash('notify', ['success', $message]); return redirect()->route('admin.comments.index'); }