Пример #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     if ($id) {
         $attachment = new Attachment();
         $attachment->showAttachment($id);
     } else {
         return Redirect::back()->withErrors(['Attachment code not indicated.']);
     }
 }