© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
12 replies
Sandeep

How to set warning on header?

I required to display warning on header for free plan.

#alert #warning
image.png
Solution
This might help:
use Illuminate\Contracts\View\View;
use Filament\Support\Facades\FilamentView;
 
class AppServiceProvider extends ServiceProvider
{
    // ...
 
    public function boot(): void
    {
        FilamentView::registerRenderHook(
            'panels::page.start',
            fn (): View => view('warning-banner')
        );
    }
}
use Illuminate\Contracts\View\View;
use Filament\Support\Facades\FilamentView;
 
class AppServiceProvider extends ServiceProvider
{
    // ...
 
    public function boot(): void
    {
        FilamentView::registerRenderHook(
            'panels::page.start',
            fn (): View => view('warning-banner')
        );
    }
}


Then your view:

<div class="mt-3 px-4 py-2 bg-primary-500/10 text-danger-600">
    Sensitive orders.
</div>
<div class="mt-3 px-4 py-2 bg-primary-500/10 text-danger-600">
    Sensitive orders.
</div>
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to set tooltip on table header?
FilamentFFilament / ❓┊help
16mo ago
Set Column with header action
FilamentFFilament / ❓┊help
16mo ago
How to set prependActions on table
FilamentFFilament / ❓┊help
3y ago
How to place form actions on header actions
FilamentFFilament / ❓┊help
3y ago