/** * Store a newly created resource in storage. * * @param CommentFormRequest $request * @return \Illuminate\Http\Response */ public function store(CommentFormRequest $request) { $c = 123; $comment = new Comment(array('post_id' => $request->get('post_id'), 'content' => $request->rules($c))); $comment->save(); return redirect()->back()->with('status', 'Your comment has been created.'); }