ria/app/Validation/CustomRules.php
2024-05-06 03:47:37 +00:00

15 lines
387 B
PHP

<?php
namespace App\Validation;
use App\Models\UserModel;
class CustomRules{
// public function check_user_exists($post_string){
// $user = new UserModel();
// $isExists = $user->checkUniqueEmail($post_string);
// return $isExists;
// }
public function Req_validate($post_string){
return strlen($post_string) == 0 ? false :true;
}
}