sweetalert2/laravel
A Laravel integration for SweetAlert2 that makes it easy to flash session alerts and trigger toast or dialog notifications from your backend using a simple facade or helper.
session()->flash() so alerts are consumed exactly once (eliminates stale alerts reappearing on later page loads). Both were delivered by the upstream SweetAlert2 maintainer, which is a positive signal on stewardship. Residual risks remain: limited production evidence (43 stars, 0 dependents), unclear Laravel/PHP version support, JS asset/SweetAlert2 version drift, CSP and accessibility behavior, and unanswered Livewire/Inertia support.session()->flash() change alter behavior for apps that relied on alerts persisting across a redirect chain or multiple renders? Does it support CSP nonces and localization? Is there a release cadence beyond this patch? How is it tested (is there a regression test for both 1.4.3 fixes)? Does it work with Livewire, Inertia, and Vite? What is the fallback if the package is abandoned?sweetalert2 npm package directly and call it from the front end unless this package provides proven Livewire/Inertia helpers.AlertService or Blade component that wraps the package. This keeps call sites stable and allows removal or replacement with direct SweetAlert2 usage if the package becomes a maintenance burden. The abstraction also insulates the app from the 1.4.3 flash-semantics change if any existing code compensated for the old double-render behavior.How can I help you explore Laravel packages today?