-
When I rename the user resource from Is there a way to tell nova to append |
Beta Was this translation helpful? Give feedback.
Answered by
kjoedion
Oct 9, 2022
Replies: 1 comment
-
Nvm I figured it out by adding these methods to the base public static function label()
{
return Str::plural(Str::title(Str::snake(Str::replaceLast('Resource', '', class_basename(get_called_class())), ' ')));
}
public static function uriKey()
{
return Str::plural(Str::kebab(Str::replaceLast('Resource', '', class_basename(get_called_class()))));
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kjoedion
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nvm I figured it out by adding these methods to the base
Resource
class: