/**
  * Downloads the given resource
  *
  * @return Response
  */
 public function download($attachment_code = '')
 {
     if ($attachment_code) {
         $attachment = new Attachment();
         echo $attachment->getAttachment($attachment_code);
     } else {
         return Redirect::back()->withErrors(['Attachment code not indicated.']);
     }
 }