Ejemplo n.º 1
0
 public function comment(Request $request)
 {
     if ($request->isMethod('post')) {
         $comment = new Comment();
         $comment->blog_id = $request->blog_id;
         $comment->comments = $request->comments;
         $comment->child_comment = $request->child_comment;
         $comment->email = $request->email;
         $comment->save();
         return Redirect()->back();
     }
 }
Ejemplo n.º 2
0
 public function comment(Request $request)
 {
     if ($request->isMethod('post')) {
         $comment = new Comment();
         $comment->comments = $request->comments;
         $comment->blog_id = $request->blog_id;
         $comment->child_id = $request->child_id;
         $comment->name = $request->name;
         $comment->email = $request->email;
         $comment->save();
         // $data['categories'] = Category::all();
         return redirect()->back();
     }
 }