realrashid/sweet-alert
Laravel wrapper for SweetAlert2 that makes it easy to show stylish alert, toast, and confirmation dialogs. Flash messages from controllers or middleware, with helpers for success/error/warning/info, custom options, and Blade support for quick integration.
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?