How to use DisplayUsing for Name module in details title and avatar menu section. #5656
-
Description:I am using third-party plugin https://github.com/outl1ne/nova-translatable Well, they use DisplayUsing under the hood. The question is, what is the hook that we can use in the resource to fix that glitch? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
I fixed the name in the User menu but the following workaround //NovaServiceProvider How to fix the details section? |
Beta Was this translation helpful? Give feedback.
-
|
If configured correctly, |
Beta Was this translation helpful? Give feedback.


outl1ne/nova-translatableusesspatie/laravel-translatablemake sure it is configured properly, correct casts and traits are present in the Model. We are using the same package and Nova seems to be working fine for us.If configured correctly,
$user->nameshould return a string of the current app locale.