Wiretoast brings unified toast notifications to Laravel via PHP, Alpine, and JavaScript
Wiretoast is a Laravel package that lets developers fire toast notifications from PHP, Alpine.js, or plain JavaScript using a single notify call. It integrates with Livewire through a component macro and dispatches browser events compatible across all three environments. The package supports five notification types, seven display positions, auto-dismiss timers, progress bars, and a grouping option to prevent duplicate stacking. Eleven built-in themes are included, with dark mode support tied to the operating system by default, requiring no external CSS framework. Assets can be bundled via Vite or published traditionally, though developers must avoid loading them through both methods simultaneously.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in