F
Filamentβ€’2y ago
dyo

custom name in User Menu Items

I want to show the user role in user menu items.. i tried these script in filament::serving in boot AppServiceProvider
Filament::registerUserMenuItems([
'account' => UserMenuItem::make()->url('/admin/my-profile')
->label(auth()->user()->name . ' - ' . auth()->user()->role->name),
]);
Filament::registerUserMenuItems([
'account' => UserMenuItem::make()->url('/admin/my-profile')
->label(auth()->user()->name . ' - ' . auth()->user()->role->name),
]);
what should i do, to make the text is not going to be like 'text-overflow: ellipsis', i want to the text is fully displayed..
1 Reply
Vp
Vpβ€’2y ago
->extraAttributes([]) and rewrite css but not sure πŸ˜†
Want results from more Discord servers?
Add your server