MenuItem::make() ->when(fn() => Auth::user()->canAccessPanel(Filament::getPanel('admin'))) ->label('Admin') ->color(Color::Red) ->icon('heroicon-o-shield-exclamation')
Auth::user()
null
visible
MenuItem