public function ckeckPolicyDuplicate($strlen_policy) { $pol = Policy::select(DB::raw(' count(*)'))->where(DB::raw("length(policy_content)"), '=', $strlen_policy)->get(); $rs = $pol[0]['count']; if (isset($rs)) { return $rs >= 1 ? false : true; } }