pleshkovpa/toasts-livewire
Toast notifications for Laravel Livewire apps: dispatch lightweight success, error, and info messages that render inside your Livewire components with minimal setup. Adds simple, customizable flash-style feedback for form submissions, actions, and other in-app events.
$this->toast('Saved', 'success') call with success/error/warning/info variants, auto-dismiss, and no page reload. That directly shortens the loop on CRUD forms, settings pages, bulk actions, imports/exports, and anything where a user needs confirmation that an action landed.Consider it when:
Look elsewhere, or build in-house, when:
role="status" / aria-live, sane focus behavior, and dwell times that don't punish slow readers. Check the published Blade view before this touches any customer-facing or regulated surface; if it's a bare Bootstrap markup drop, that's our WCAG risk to absorb.Verification checklist before adoption (cheap, do it once): confirm Livewire 3 actually works against the current release; read composer.json for illuminate/* and PHP constraints; check whether it collides with our existing session flash usage; read the Blade view for accessibility and for whether error toasts can be configured to persist instead of auto-dismissing.
To executives: This is a small UX accelerator for internal tooling, not a platform commitment. Value is measured in hours saved per feature and in consistent feedback across our admin surfaces. Risk is an unmaintained micro-dependency we could replace in a day, which we neutralize by wrapping it behind our own toast API so feature code never imports the vendor package directly. Recommendation: adopt narrowly — internal surfaces, Bootstrap-based UI, pinned version — and re-evaluate at the next Livewire major.
To engineering: About 30 minutes to install, publish the config and Blade view, and call $this->toast(...) from a component, versus most of a day to build, style, and test the equivalent. The non-negotiable is the wrapper trait: our components call ours, we own the Blade view, and swapping implementations later is a single-file change rather than a search-and-replace. Pin the exact version, commit the lockfile, and add one integration test asserting a toast dispatches on a representative action.
To design: The primitive is the Bootstrap toast with four variants and a configurable auto-dismiss. Two decisions are ours, not the package's: how long each variant lives, and whether errors auto-dismiss at least once (recommendation: errors persist or require acknowledgment; success auto-dismisses). Confirm screen-reader announcement and focus behavior before this appears anywhere customer-facing.
How can I help you explore Laravel packages today?