Default casing for permissions #1981
olivernybroe
started this conversation in
General
Replies: 1 comment 1 reply
-
There is no rule, it is open for everyone to use as they see fit, changing that maybe would be a breaking change for many(i'm using snake_case) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently the documentation uses spaces for permissions, however I personally don't like the syntax of that and especially when used in a middleware
Personally I think kebab-case is better
The reason for taking this discussion up, is to change what the default casing is. Another solution could be to make it casing agnostic, e.g. I can write
publish articles
,publish-articles
,publish_articles
,publish_articles
,publishArticles
and all would refer to the same permission 🤔Beta Was this translation helpful? Give feedback.
All reactions