public function postComment(PostCommentImageRequest $request, $user, $id)
 {
     $image = Image::where(['id' => $id, 'user_id' => $user]);
     if (count($image->get()) == 0) {
         if ($request->ajax()) {
             return json_encode(['error' => 1, 'message' => 'Opps! Cann\'t post your comment! Maybe photo has been delete!']);
         }
         return redirect()->route('photo.show', [$user, $id])->withErrors('The photo does not exist!');
     }
     $data = ['comment_status' => 1, 'user_id' => \Auth::user()->id, 'image_id' => $id];
     if (Comment_image::create(array_merge($request->except('_token'), $data))) {
         if ($request->ajax()) {
             return json_encode(['error' => 0, 'message' => $request->get('comment_content'), 'commentCount' => $image->first()->comments()->count(), 'author' => \Auth::user()->name, 'route' => route('user.profile', Auth::user()->id)]);
         }
         return redirect()->route('photo.show', [$user, $id])->with(['message' => 'Your comment has been post']);
     }
     if ($request->ajax()) {
         return json_encode(['error' => 1, 'message' => 'Opps! Cann\'t post your comment! Maybe photo has been delete!']);
     }
     return redirect()->route('photo.show', [$user, $id])->withErrors('Unexpected errors');
 }