ria/app/Validation/CustomRules.php
2024-09-11 08:54:25 +05:30

15 lines
387 B
PHP
Executable File

<?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;
}
}