FilamentF
Filament3y 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),
]);

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..
image.png
Was this page helpful?