realrashid/sweet-alert
Laravel package to integrate SweetAlert2 popups: stylish alerts, confirmations, toasts, and notifications. Trigger from controllers or views with simple helpers and session flashes, customize options, and improve UX with minimal setup.
SweetAlertServiceProvider::register() — the bind() call was incorrectly passing a third argument (ToSweetAlert class string as $shared), causing Alert::warning and other facade methods to fail under Laravel 12's stricter container resolution[@method](https://github.com/method) PHPDoc annotations to the Alert facade for full IDE and static-analysis supportanimation($showClass = [], $hideClass = []) to animation($showAnimation, $hideAnimation)animation($showClass = [], $hideClass = [])buttonsStyling() methodiconHtml() methodChanges
// From
public function toast($title = '', $type = '', $position = 'bottom-right'){...}
// To
public function toast($title = '', $type = ''){...}
// set the default position in package config file or use the helper method position()
Added some new methods
alert() methodalert()->success() methodalert()->info() methodalert()->wanring() methodalert()->question() methodalert()->error() methodalert()->html() methodtoast() methodshowConfirmButton() helper methodshowCloseButton() helper methodshowCancelButton() helper methodpersistent() helper methodautoClose() helper methodtoToast() helper methodfooter() helper methodHow can I help you explore Laravel packages today?