/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $items = Attachment::orderBy('name', 'ASC')->paginate(50);
     //        $items = Attachment::where('mime', '!=', 'text/plain')->orderBy('name', 'ASC')->paginate(50);
     $search = '';
     //        $lectures = Attachment::orderBy('name', 'ASC')->paginate(50);
     return View::make('attachment.view_attachment', compact('items', 'search'));
 }