public function checkExistChkList($th_name, $en_name) { $rs = UploadType::where('name', '=', $th_name)->orWhere('eng_name', '=', $en_name)->count(); if (isset($rs)) { return $rs >= 1 ? false : true; } }
public function getUploadTypeById($typeid) { $rs = UploadType::where('id', '=', $typeid)->get(); return $rs; }