Skip to content
New issue

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

Creation/Edit of Role Names with Special Characters and Spaces #81

Open
cleicastro opened this issue Mar 14, 2024 · 0 comments
Open

Creation/Edit of Role Names with Special Characters and Spaces #81

cleicastro opened this issue Mar 14, 2024 · 0 comments

Comments

@cleicastro
Copy link

When creating or editing role names within Laravel Nova, there seems to be an issue regarding the acceptance of special characters and spaces. Currently, there is no built-in validation or restriction mechanism to prevent users from inputting role names with such characters.

Expected Behavior:

  • The system should restrict the creation or editing of role names to ensure they only contain alphanumeric characters, hyphens, and underscores.

Current Behavior:

  • Users are able to create or edit role names with special characters and spaces, which can lead to inconsistencies and potential errors in the system.

Proposed Solution:

  • Implement a validation mechanism within Laravel Nova to ensure that role names adhere to the desired format (i.e., alphanumeric characters, hyphens, and underscores only). This could be achieved by adding a custom validation rule or enhancing the existing validation mechanism.

Additional Context:

  • This issue impacts the consistency and integrity of role management within Laravel Nova installations.
  • The proposed solution aims to improve data consistency and prevent potential issues arising from role names with special characters and spaces.
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

No branches or pull requests

1 participant