15 lines
387 B
PHP
Executable File
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;
|
|
}
|
|
}
|