© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago
Brenty

Tabs on Customer Page Throwing Tabs::getBadge does not exist.

Hi, I've been trying to find a solution all morning for this and cant locate anyone having same issue I have. When rendering the tabs onto the page I get the following message

Method Filament\Forms\Components\Tabs::getBadge does not exist.
error is throwing on this line <x-filament-panels::resources.tabs />

My code does not even use badges and yet it still shows error.

   <x-filament::card class="mt-8">
        <x-filament-panels::resources.tabs />
        {{ $this->table }}
    </x-filament::card>
   <x-filament::card class="mt-8">
        <x-filament-panels::resources.tabs />
        {{ $this->table }}
    </x-filament::card>


 protected function getTabs(): array
    {
        $locations = Location::where('status', 'enabled')->get();

        $tabs = [];
    
        foreach ($locations as $location) {
            $tabs[$location->id] = Tab::make($location->name)
                ->icon('heroicon-o-location-marker');
                //->badge(fn () => Campaign::where('location_id', $location->id)->count());
        }
    
        return [
            Tabs::make('Locations')->tabs($tabs),
        ];

     
    }
 protected function getTabs(): array
    {
        $locations = Location::where('status', 'enabled')->get();

        $tabs = [];
    
        foreach ($locations as $location) {
            $tabs[$location->id] = Tab::make($location->name)
                ->icon('heroicon-o-location-marker');
                //->badge(fn () => Campaign::where('location_id', $location->id)->count());
        }
    
        return [
            Tabs::make('Locations')->tabs($tabs),
        ];

     
    }


Sorry this is my first post, if i get formatting wrong i applogies.
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

resetPage does not exist on custom page
FilamentFFilament / ❓┊help
3y ago
getFiltersTriggerAction does not exist on Widget
FilamentFFilament / ❓┊help
4mo ago
prefix does not exist.
FilamentFFilament / ❓┊help
2y ago
extraFieldWrapperAttributes does not exist
FilamentFFilament / ❓┊help
2y ago