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 supportv7.3.1
Upgrade notes:
Full Changelog: https://github.com/realrashid/sweet-alert/compare/v7.1.1...v7.2.0
Full Changelog: https://github.com/realrashid/sweet-alert/compare/v7.0.0...v7.1.0
Full Changelog: https://github.com/realrashid/sweet-alert/compare/v.5.1.1...v6.0.0
animation($showClass = [], $hideClass = []) to animation($showAnimation, $hideAnimation)animation($showClass = [], $hideClass = []) methodbuttonsStyling() methodiconHtml() methodAdded symfony/thanks Docs Updated Fix some bugs
Added Missing ^ indicator prevents Laravel from updating to 6.0.1 and up Docs Updated Fix some bugs
Changes
// 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()
How can I help you explore Laravel packages today?