public function commentUpdate(CommentFormRequest $request, $id) { $articles_comment = $request->input('comment'); $articles = Article::find($id); ArticlesComment::create(['articles_id' => $id, 'articles_title' => $articles->title, 'comment' => $articles_comment, 'username' => auth()->user()->name]); return redirect()->route('articles.show', $id); }