public function getFileName($file_idx) { $file_list = fileupload::where('file_idx', $file_idx)->get(); return $file_list[0]->file_name; }
public function all() { $page = Request::input("page"); return fileupload::select('file_idx as 번호', 'file_name as 파일명', 'file_path as 경로', 'file_copy_date as 생성일자', 'file_size as 용량')->skip(10 * $page)->take(10)->get(); }