Esempio n. 1
0
 public function upload()
 {
     $view = Input::get('view', 'uploader');
     if ($view === 'list' || $view === 'list-content') {
         //need fix
         $part = Input::get('part');
         $list = File::get(Input::get('model'), Input::get('model_id', 0))->files($part)->orderBy('sort', 'asc')->get();
     } else {
         $list = File::orderBy('sort', 'asc')->get();
     }
     return view($this->templatePath() . '.' . $view, array('list' => $list));
 }