© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
2 replies
@nasilemak

Method Filament\Panel::assets does not exist.

I'm on Filament 3.1

Trying to register assets for a panel.

public function panel(Panel $panel): Panel
{
    return $panel
        ->id('seller')
        ->path('my-shop')
        ->colors([
            'primary' => Color::Blue,
        ])
        ->assets([
            Css::make('custom-stylesheet', resource_path('css/seller-panel.css')),
            Js::make('custom-script', resource_path('js/seller-panel.js')),
        ])
}
public function panel(Panel $panel): Panel
{
    return $panel
        ->id('seller')
        ->path('my-shop')
        ->colors([
            'primary' => Color::Blue,
        ])
        ->assets([
            Css::make('custom-stylesheet', resource_path('css/seller-panel.css')),
            Js::make('custom-script', resource_path('js/seller-panel.js')),
        ])
}


Getting the error

Method Filament\Panel::assets does not exist.
Method Filament\Panel::assets does not exist.
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

Method Filament\Panel::databaseTransactions does not exist.
FilamentFFilament / ❓┊help
2y ago
Method Filament\Panel::getDomains does not exist
FilamentFFilament / ❓┊help
3y ago
Method Filament\Panel::getDomains does not exist. when installing filament-breezy
FilamentFFilament / ❓┊help
3y ago
Method Filament\Panel::getDomain does not exist error after composer update
FilamentFFilament / ❓┊help
3y ago