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
Livewire Toaster

Livewire Toaster Laravel Package

mabdullahsari/livewire-toaster

Livewire Toaster brings toast notifications to your Laravel Livewire apps. Dispatch lightweight, customizable toasts from any component or PHP class, with auto-dismissing messages, multiple variants, and no extra JavaScript wiring required.

View on GitHub
Deep Wiki
Context7

Beautiful toast notifications for Laravel / Livewire.

Frequently asked questions about Livewire Toaster
How do I install mabdullahsari/livewire-toaster in a Laravel app?
Install it with Composer using composer require mabdullahsari/livewire-toaster, and Laravel's package auto-discovery registers the service provider without manual wiring. On day one, confirm whether a config or asset publish step is mandatory for a default setup, since the package ships both PHP-side rendering and JS/Alpine behavior. Most projects need the install plus the package's Blade include in the root layout.
Which Livewire versions does Livewire Toaster support?
The package targets the standard Laravel + Blade + Livewire stack and is built around Livewire 3-style server-to-client events. Check the composer.json constraints in the release you install and pin the package version that matches your Livewire major, because the Livewire 2 to 3 event dispatch change was breaking. Treat a Livewire upgrade as a coordinated upgrade of this package too.
Do toasts survive a redirect after a Livewire action?
This is one of the first things to verify in a spike, because Livewire events do not cross a full page navigation and a redirect() ends the request. If you need a 'Saved successfully' toast after a redirect, confirm the package supports a session-flash path or fall back to your existing flash banner for those flows. Same-page Livewire requests are the primary, supported case.
Are the toast assets auto-injected or do I need to include them in my layout?
The package ships PHP-side rendering plus JS/Alpine behavior, and asset loading is the single biggest integration variable to validate. Determine whether it injects assets automatically or requires a Blade component include in your root layout, and whether those assets flow through Vite or a package-provided asset route. If it bypasses your Vite build, review CSP headers, CDN caching, and asset versioning before shipping.
Can I publish and override the toast views to match my design system?
Views can typically be published and overridden, which is the clean path to matching your design tokens. The tradeoff is that overriding converts the package from drop-in to vendored, so you inherit the maintenance of those templates on upgrades. The toast markup ships with its own Tailwind classes or inline styles, so check for a mismatch with your design system early.
How do I dispatch a toast from a Livewire component or a plain PHP class?
You call the package's toaster() helper or facade from inside a component action or any PHP class, and the event is dispatched through Livewire's event bus for the browser to render. The package supports multiple toast variants with auto-dismissing messages, so you can express success, error, and informational states. Keep calls behind a thin internal Notifier service so the vendor can be swapped without touching call sites.
Does Livewire Toaster require a database, queue, or cache?
No. It is a thin presentation-layer package that hooks into Livewire's server-to-client event channel and renders toasts in the browser. It does not touch persistence, domain logic, or the request lifecycle beyond a service provider and helper registration. That means the operational footprint is essentially zero beyond your existing Livewire assets.
Is mabdullahsari/livewire-toaster actively maintained and safe to depend on?
It is MIT licensed with roughly 512 stars and a recent release, which indicates an active maintainer, but it is a single-maintainer package. The realistic risk is abandonment, not licensing or privacy, since no PII leaves the server beyond message strings rendered client-side. Mitigate by wrapping usage in your own Notifier abstraction and tracking issue-response time over the last six months.
Will Livewire Toaster work in an Inertia, React, or Vue app?
It is a poor fit if your frontend is Inertia, React, or Vue with Livewire used only peripherally, because the package assumes Blade rendering plus Livewire events. It is strongest in a Laravel 10 or 11 app with Livewire 3, Blade, and Tailwind. It also conflicts with a strict no-third-party-frontend-JS policy, so review that constraint before adopting.
Can I control toast position, queueing, or manual dismissal, and does it work without JS?
The core surface is dispatching customizable toasts with multiple variants and auto-dismiss behavior. Confirm in your installed version whether position, queue depth, and manual dismiss are configurable or fixed, and whether they are set per dispatch or globally. Also verify graceful degradation: if JS fails to initialize, server-rendered messages should still be visible rather than silently lost.
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo