rectitude-open/filament-info-alert
A Filament package for adding configurable info alerts to your admin panel. Display important notices, announcements, or contextual messages to users with flexible styling and easy integration into Laravel and Filament apps.
rectitude-open/filament-info-alert is a small Filament plugin that ships an InfoAlert component for surfacing informational callouts inside Filament panels (forms, pages, widgets). It is a presentation helper, not an application layer — expect to reach for it whenever you need a styled hint, notice, or onboarding message in an admin screen.
Install and register
composer require rectitude-open/filament-info-alert
Register the plugin in your panel provider (app/Providers/Filament/AdminPanelProvider.php):
->plugin(\RectitudeOpen\FilamentInfoAlert\FilamentInfoAlertPlugin::make())
Where to look first
src/ directory for the InfoAlert component and its namespace (v1.0.1 changed this — see Gotchas).resources/views/ folder for the Blade template if you need to restyle.make() / fluent API supported in your Filament major version.First use case — drop an alert into a resource form schema:
use RectitudeOpen\FilamentInfoAlert\Components\InfoAlert; // verify exact namespace for v1.0.1
public static function form(Form $form): Form
{
return $form->schema([
InfoAlert::make()
->title('Heads up')
->body('Changes here affect live data.'),
// ...rest of schema
]);
}
InfoAlert::make() at the top of a form() schema or between sections to explain fields before the user reaches them. Combine with ->columnSpanFull() so it spans the grid.->visible(fn ($record) => $record?->isLocked()) to show contextual warnings only when relevant (e.g. read-only records, draft states, missing prerequisites).<x-filament-info-alert::... />) rather than duplicating markup. Publish views first (see below) to control the markup.->title(), ->body(), ->icon(), ->color() where exposed. Check the README for the supported chain per version; not every Filament component option is wired through.AlertFactory so copy/colour live in one place.InfoAlert component's namespace was corrected. If you scaffolded against v1.0.0, your use statements or any class-string references (e.g. inside ->schema([...]) or config arrays) may point at the old FQCN and will break. Grep your codebase for the old namespace and update, then clear caches:
composer dump-autoload
php artisan filament:cache-components
php artisan view:clear
filament/filament and this package together in composer.json so bumps stay in lockstep.vendor/ — publish and override:
php artisan vendor:publish --tag="filament-info-alert-views"
Re-publish after upgrades if the upstream template changed, or your copy will go stale silently.filament:cache-components + view:clear.php artisan filament:assets runs in your deploy pipeline; otherwise the alert renders unstyled in production but looks fine locally.role="status" / aria-live) survive any view customisation you apply.How can I help you explore Laravel packages today?