/**
  * Display a listing of all Comments for particular File.
  *
  * @return Response 200
  * @return jsonObject 'comments'
  */
 public function index($file_id)
 {
     $input = Input::all();
     $user_file = UserFile::find($file_id);
     $comments = $user_file->returnCommentsV1();
     return Response::json(array('comments' => $comments), 200);
 }
 public function handle($request, Closure $next)
 {
     $input = Input::all();
     $route = Route::getRoutes()->match($request);
     //Validate
     $validator = Validator::make(Input::all(), Comment::$storageRulesV1);
     if (!$validator->passes()) {
         return Response::json(array('error' => True, 'messages' => $validator->messages()), 400);
     }
     //Make Sure File Exists
     $file_id = $route->parameter('files');
     $file = UserFile::find($file_id);
     if (empty($file)) {
         return Response::json(array('error' => True, 'message' => 'File Does Not Exist'), 400);
     }
     return $next($request);
 }