-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
[String] Add kebab()
to methods to change case
#48780
Comments
kebab
to methods to Change Casekebab()
to methods to Change Case
This transformation looks like the slug. Except it doesn't translate special chars to ascii. |
I have a form name that is in snake case. I would like it to be in kebab case automatically. |
Great. We already have |
I will try |
kebab()
to methods to Change Casekebab()
to methods to change case
Thank you for this suggestion. |
Could I get a reply or should I close this? |
Miss this feature as well. |
+1. Would like to see this. |
Why not seems fair? |
As long as it doesn't exist, you can use |
+1, weird that it still haven't been PR'd. Need help with this? |
There was a PR: #48781 |
…xandre-daubois) This PR was merged into the 7.2 branch. Discussion ---------- [String] Add the `AbstractString::kebab()` method | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | Fix #48780 | License | MIT Supersedes #48781. It seems there's quite a demand for this feature. I think it is a nice DX improvement which also helps readability over calling `snake()->replace('_', '-')`. Commits ------- b2b82d6 [String] Add the `AbstractString::kebab()` method
Description
Hi,
It would be interesting to add the
kebab()
function to the string component.Example
The text was updated successfully, but these errors were encountered: