working except for null 🤔

This commit is contained in:
spencerrlongg 2024-11-13 21:46:23 -06:00
parent 3982201d0e
commit 25163d1756

View file

@ -19,7 +19,7 @@ class AlphaEncrypted implements ValidationRule
$decrypted = Crypt::decrypt($value);
dump($decrypted);
if (!ctype_alpha($decrypted)) {
$fail($attribute.' is not numeric.');
$fail($attribute.' is not alphabetic.');
}
} catch (\Exception $e) {
$fail($e->getMessage());