Skip to content

adding some new validation rules#236

Merged
techmahedy merged 3 commits intodoppar:3.xfrom
techmahedy:techmahedy-3.x
Apr 4, 2026
Merged

adding some new validation rules#236
techmahedy merged 3 commits intodoppar:3.xfrom
techmahedy:techmahedy-3.x

Conversation

@techmahedy
Copy link
Copy Markdown
Member

Added some new validation rules like

Alpha

Validates that the field's value contains only alphabetic characters (A–Z, a–z). Numbers, spaces, symbols, and punctuation will all fail this rule.

$request->sanitize([
    'first_name' => 'required|alpha'
]);

"John" will pass, but "John123" will fail because it contains numbers. "John Doe" will also fail because it contains a space, and "John_Doe" will fail because it contains an underscore.

@techmahedy techmahedy merged commit 5f9a875 into doppar:3.x Apr 4, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant