public function FileDelete($file_idx) { $file = fileupload::find($file_idx); $fullPath = base_path() . "/" . $file->file_path . "/" . $file->file_name; /* file과 DB 데이터 동시 삭제 */ File::delete($fullPath); $file->delete(); }