Custom page Action with kebab-case doesn't activate
Custom page actions (not table actions, they work as expected) that have kebab-case name (
Action::make('test-text')
) won't trigger it's action on click. When it changed to Action::make('testText')
, it works as expected.
1 Reply
Function names use underscores between words, while class names use both the camelCase and PascalCase rules.Check the rules for function naming convention https://www.php.net/manual/en/userlandnaming.rules.php