File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class ValidErrorsModel extends Model
2424 'description ' ,
2525 ];
2626 protected $ validationRules = [
27+ 'id ' => 'permit_empty|is_natural_no_zero ' ,
2728 'name ' => [
2829 'required ' ,
2930 'min_length[10] ' ,
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class ValidModel extends Model
2424 'description ' ,
2525 ];
2626 protected $ validationRules = [
27+ 'id ' => 'permit_empty|is_natural_no_zero ' ,
2728 'name ' => [
2829 'required ' ,
2930 'min_length[3] ' ,
Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ public function testValidationWithGroupName(): void
242242 {
243243 $ config = new class () extends Validation {
244244 public $ grouptest = [
245+ 'id ' => 'is_natural_no_zero ' ,
245246 'name ' => [
246247 'required ' ,
247248 'min_length[3] ' ,
You can’t perform that action at this time.
0 commit comments