Example #1
0
 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;
     }
 }
Example #2
0
 public function getUploadTypeById($typeid)
 {
     $rs = UploadType::where('id', '=', $typeid)->get();
     return $rs;
 }