Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
laragear-alerts-render-alert
laragear-alerts-render-alert
laragear/alerts
claude-code
alerts
blade
components
filtering
view-publishing

Display pushed alerts in Blade layouts with the container component, filter which alerts render in a section, or publish and customize the container view. Exclude creating or pushing alerts (use alerts-create, alerts-push).

Install
php artisan boost:add-skill laragear/alerts

Save this content to: .claude/skills/render-alert/SKILL.md

# Render Alerts

Use in Blade layouts where pushed alerts must become visible HTML.

## Container placement

Place `<x-alerts-container />` exactly once in the master layout, above the yielded content — all pushed alerts render there automatically:

```blade
<div class="container">
    <x-alerts-container />
    @yield('content')
</div>
```

## Scoped sections

Use the `filter` attribute with fully-qualified class names, comma-separated, when a section must show only specific alerts:

```blade
<x-alerts-container filter="\App\Alerts\ErrorAlert,\App\Alerts\WarningAlert" />
```

## Customizing the container

Publish and edit the container view (`laragear::alerts.container`) instead of building a replacement component:

```shell
php artisan vendor:publish --tag="alerts-views"
```

Render Alerts

Use in Blade layouts where pushed alerts must become visible HTML.

Container placement

Place <x-alerts-container /> exactly once in the master layout, above the yielded content — all pushed alerts render there automatically:

<div class="container">
    <x-alerts-container />
    @yield('content')
</div>

Scoped sections

Use the filter attribute with fully-qualified class names, comma-separated, when a section must show only specific alerts:

<x-alerts-container filter="\App\Alerts\ErrorAlert,\App\Alerts\WarningAlert" />

Customizing the container

Publish and edit the container view (laragear::alerts.container) instead of building a replacement component:

php artisan vendor:publish --tag="alerts-views"
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core