© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
7 replies
phydeaux

Does configureUsing work on Filament\Panel?

I'm using a logo on my panel which works fine if I set it in the panel() method of the PanelProvider. But since i'm going to want the same on every panel, I'm trying to set them in a global Service Provider. To keep things separate, I created a new provider and added this:

public function boot(): void
{
    Panel::configureUsing(function (Panel $panel) {
        return $panel
            ->brandLogo(asset('img/hrlink-logo.svg'))
            ->darkModeBrandLogo(asset('img/hrlink-logo-light.svg'));
    }, isImportant: TRUE
    );
}
public function boot(): void
{
    Panel::configureUsing(function (Panel $panel) {
        return $panel
            ->brandLogo(asset('img/hrlink-logo.svg'))
            ->darkModeBrandLogo(asset('img/hrlink-logo-light.svg'));
    }, isImportant: TRUE
    );
}


I initially tried it without the isImportant but saw that mentioned elsewhere so I gave it a shot. No joy. I've also tried it in AppServiceProvider just to rule out any problems with the new one but same result.

I also added a log line at the top of the boot() method to verify that it's getting called and it is. Multiple times.

Any thoughts on why the config is not being picked up?
Solution
Probably the AppServiceProvider is already too late because the panel is configured in a ServiceProvider too. Can you try this in
register()
register()
method?
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

getUploadedFileNameForStorageUsing() on FileUpload::configureUsing() does not work :S
FilamentFFilament / ❓┊help
2y ago
Filament: panelLayout('grid') on SpatieMediaLibraryFileUpload
FilamentFFilament / ❓┊help
16mo ago
Method Filament\Panel::databaseTransactions does not exist.
FilamentFFilament / ❓┊help
2y ago
Method Filament\Panel::assets does not exist.
FilamentFFilament / ❓┊help
2y ago