mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-03 09:57:45 -08:00
working except for null 🤔
This commit is contained in:
parent
3982201d0e
commit
25163d1756
|
@ -19,7 +19,7 @@ class AlphaEncrypted implements ValidationRule
|
||||||
$decrypted = Crypt::decrypt($value);
|
$decrypted = Crypt::decrypt($value);
|
||||||
dump($decrypted);
|
dump($decrypted);
|
||||||
if (!ctype_alpha($decrypted)) {
|
if (!ctype_alpha($decrypted)) {
|
||||||
$fail($attribute.' is not numeric.');
|
$fail($attribute.' is not alphabetic.');
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$fail($e->getMessage());
|
$fail($e->getMessage());
|
||||||
|
|
Loading…
Reference in a new issue