nova-permissions icon indicating copy to clipboard operation
nova-permissions copied to clipboard

Creation/Edit of Role Names with Special Characters and Spaces

Open cleicastro opened this issue 1 year ago • 0 comments

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.

cleicastro avatar Mar 14 '24 15:03 cleicastro