We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I was trying to create a new user with username included ".", It gives error as below
Can you please fix this bug?
The text was updated successfully, but these errors were encountered:
This issue probably accours, because confide doesn't allow "." in a username by default.
You can simple create your own validation class and bind it to the IoC-Container. How-to-Guide.
You can override the rules by simply extending the original UserValidator Class like so:
<?php use Zizaco\Confide\UserValidator; use Zizaco\Confide\UserValidatorInterface; class CustomConfideValidator extends UserValidator { public $rules = [ 'create' => [ 'username' => 'string', 'email' => 'required|email', 'password' => 'required|min:4', ], 'update' => [ 'username' => 'string', 'email' => 'required|email', 'password' => 'required|min:4', ] ]; }
Sorry, something went wrong.
No branches or pull requests
Hello,
I was trying to create a new user with username included ".", It gives error as below
Can you please fix this bug?
The text was updated successfully, but these errors were encountered: