remove some commented things
This commit is contained in:
@@ -13,7 +13,6 @@ class NumericEncrypted implements ValidationRule
|
||||
{
|
||||
use ValidatesAttributes;
|
||||
|
||||
//$this->validateEmail($attribute, $decrypted);
|
||||
/**
|
||||
* Run the validation rule.
|
||||
*
|
||||
@@ -27,9 +26,6 @@ class NumericEncrypted implements ValidationRule
|
||||
if (!$this->validateNumeric($attributeName, $decrypted) && !is_null($decrypted)) {
|
||||
$fail(trans('validation.numeric', ['attribute' => $attributeName]));
|
||||
}
|
||||
//if (!is_numeric($decrypted) && !is_null($decrypted)) {
|
||||
// $fail(trans('validation.numeric', ['attribute' => $attributeName]));
|
||||
//}
|
||||
} catch (\Exception $e) {
|
||||
report($e->getMessage());
|
||||
$fail(trans('general.something_went_wrong'));
|
||||
|
||||
@@ -129,18 +129,6 @@ class CustomFieldFactory extends Factory
|
||||
});
|
||||
}
|
||||
|
||||
//public function testEncryptedAlpha()
|
||||
//{
|
||||
// return $this->state(function () {
|
||||
// return [
|
||||
// 'name' => 'Test Encrypted',
|
||||
// 'field_encrypted' => '1',
|
||||
// 'help_text' => 'This is a sample encrypted field.',
|
||||
// 'format' => 'alpha'
|
||||
// ];
|
||||
// });
|
||||
//}
|
||||
|
||||
public function testCheckbox()
|
||||
{
|
||||
return $this->state(function () {
|
||||
|
||||
Reference in New Issue
Block a user