added messages list, new client form, logic for client Apps plus others
This commit is contained in:
@@ -9,4 +9,15 @@ use Illuminate\Routing\Controller as BaseController;
|
||||
class Controller extends BaseController
|
||||
{
|
||||
use AuthorizesRequests, ValidatesRequests;
|
||||
function validate_11_or_12_digits($string) {
|
||||
// Check if the string contains only digits
|
||||
if (ctype_digit($string)) {
|
||||
// Check if the length is 11 or 12
|
||||
$length = strlen($string);
|
||||
if ($length === 11 || $length === 12) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user