Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[9.x] Support kebab case for slot name shortcut (#42574)
* Support kebab case for slot names The inline slot name shortcut was added in laravel 9 but it does not comply with the blade component kebab case naming convention (for when the slot name has more than 1 word). This edit will will make the feature fit intuitively with the blade component naming conventions. * Matches catpture group increment A new capture group was added in order to support kebab case so the check for the existence of the dynamic component should be increased by 1 * pattern should have been a non-capturing group the pattern should have been a non capturing group instead of incrementing the index for matches. * kebab-cased slot names are converted to camelCase rather than snake_case * fix code style issue
- Loading branch information