realrashid/sweet-alert
Laravel Sweet Alert Is A Package For Laravel Provides An Easy Way To Display Alert Messages Using The SweetAlert2 Library.
v7.3.2
3.2M downloads/mo
#2795 most downloaded on Packagist
realrashid/sweet-alert
What this package is like to depend on
Last release 4 months ago
29 Mar 2026
Ships fairly regularly
a new release about every 4 months
Nearly every release is documented
notes for 33 of 34 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
34 releases · first in 2017
2 releases in the last 12 months
see the full history below
Release timeline
34 releases · Nov 2017 to Mar 2026Releases
latest 34-
v7.3.229 Mar 2026Release notes
Open source →v7.3.2 - 2026-03-29
- Laravel 12 compatibility fix for Alert facade (Closes #181)
- Fixed: Corrected
SweetAlertServiceProvider::register()— thebind()call was incorrectly passing a third argument (ToSweetAlertclass string as$shared), causingAlert::warningand other facade methods to fail under Laravel 12's stricter container resolution - Added
@methodPHPDoc annotations to theAlertfacade for full IDE and static-analysis support
Release notes
Open source →- Laravel 12 compatibility fix for Alert facade (Closes #181)
- Fixed: Corrected
SweetAlertServiceProvider::register()— thebind()call was incorrectly passing a third argument (ToSweetAlertclass string as$shared), causingAlert::warningand other facade methods to fail under Laravel 12's stricter container resolution - Added
@methodPHPDoc annotations to theAlertfacade for full IDE and static-analysis support
-
v7.3.128 Mar 2026Release notes
Open source →v7.3.1
Release Notes
- Fixed: Prevent Blade from compiling example route in resources/boost/guidelines/core.blade.php by escaping Blade braces in the example (use @{{ … }}). Fixes #190 — reported by @mohammedterfa.
- Docs Updated
Upgrade notes:
- This is a documentation-only fix; there are no breaking changes.
Release notes
Open source →- Fixed: Prevent Blade from compiling example route in resources/boost/guidelines/core.blade.php by escaping Blade braces in the example (use @{{ … }}). Fixes #190 — reported by @mohammedterfa.
-
v7.3.025 Feb 2025Release notes
Open source →- Added Laravel 13 Support
- Updated bundled SweetAlert2
- Added Laravel Boost AI guidelines and Boost Skill
- Docs Updated
Upgrade notes:
- Ensure your application meets Laravel 13 PHP requirements before upgrading.
- Keep using asset('vendor/sweetalert/sweetalert.all.js') if you rely on the bundled JS path.
Release notes
Open source →- Added Laravel 13 Support
- Updated bundled SweetAlert2
- Added Laravel Boost AI guidelines and Boost Skill
- Docs Updated
-
v7.2.015 Jun 2024Release notes
Open source →v7.2.0 - 2024-06-15
- Added Laravel 11 Support
- Upgraded SweetAlert2 to the latest version
- Bug Fixes
- Updated Documentation
What's Changed
New Contributors
Full Changelog: v7.1.1...v7.2.0
Release notes
Open source →- Added Laravel 11 Support
- Upgraded SweetAlert2 to latest version
- Bug Fixes
- Docs Updated
-
v7.1.102 Mar 2024 -
v7.1.007 Aug 2023Release notes
Open source →v7.1.0 - 2023-08-08
- Upgraded SweetAlert2 to latest version
- Customizable default confirm/cancel button texts. by @hakimzulkufli
- Bug Fixes
- Docs Updated
Full Changelog: v7.0.0...v7.1.0
-
v7.0.020 Apr 2023Release notes
Open source →v7.0.0 - 2023-04-20
- Added confirmDelete function
- Added themes feature
- Upgraded SweetAlert2 to latest version
- Bug Fixes
- Docs Updated
Release notes
Open source →- Added confirmDelete function
- Added themes feature
- Upgraded SweetAlert2 to latest version
- Bug Fixes
- Docs Updated
-
v6.0.015 Feb 2023Release notes
Open source →v6.0.0 - 2023-02-15
- Added Laravel 10 Support
- Bug Fixes
- Docs Updated
What's Changed
Full Changelog: v.5.1.1...v6.0.0
-
v5.1.028 May 2022 -
v5.0.004 Feb 2022Release notes
Open source →- Added Laravel 9 Support
- Bug Fixes
- Upgraded SweetAlert2 to latest version
- Docs Updated
-
v4.1.006 Nov 2021 -
v4.0.014 Jun 2021Release notes
Open source →- Bug Fixes
- Upgraded SweetAlert2 to latest version
- .gitattributes file
- Docs Updated
-
v3.2.326 May 2021 -
v3.2.217 Feb 2021Release notes
Open source →- Remove Laravel 6 Support
- Upgraded SweetAlert2 to latest version
- Docs Updated
-
v3.2.114 Jan 2021 -
v3.2.002 Dec 2020 -
v3.1.709 Sep 2020Release notes
Open source →- Added Support for Laravel 8
- Upgraded SweetAlert2 to latest version
- Minor Changes
- Docs Updated
-
v3.1.617 Jul 2020Release notes
Open source →- Added flexibility to Always load the sweetalert.all.js and Never load the sweetalert.all.js by farhanianz
- Upgraded SweetAlert2 to latest version
- Minor Changes in Middleware.md
- Docs Updated
-
v3.1.511 Jun 2020Release notes
Open source →- Upgraded SweetAlert2 to latest version
- Minor Changes in Middleware
- Docs Updated
-
v3.1.431 Mar 2020Release notes
Open source →- Upgraded SweetAlert2 to latest version
- Added ability to custom css classes
- Docs Updated
-
v3.1.322 Feb 2020 -
v3.1.224 Jan 2020 -
v3.1.107 Jan 2020Release notes
Open source →- Upgraded SweetAlert2 to latest version
- Added ability to activate or not the middleware error messages
- Docs Updated
-
v3.1.029 Dec 2019Release notes
Open source →- Upgraded SweetAlert2 to latest version
- Added Tidelift to funding.yaml
- Added SECURITY.md in .github/SECURITY.md
- Added timerProgressBar() method
- Added PublishCommand to easily publish the package assets
- Updated question() alert method
- Refactor SweetAlertServiceProvider class
- Refactor Toaster class
- Refactor functions.php file
- Updated PHPDocBlocks
- Docs Updated
-
v3.0.127 Nov 2019Release notes
Open source →- Updated
animation($showClass = [], $hideClass = [])to animation($showAnimation, $hideAnimation) - Docs Updated
- Fixed animations issue
- Updated
-
v2.0.313 Oct 2019 -
v2.0.208 Sep 2019Release notes
Open source →- Added Missing ^ indicator prevents Laravel from updating to 6.0.1 and up
- Docs Updated
- Fix some bugs
-
v2.0.105 Sep 2019Release notes
Open source →- Added support for Laravel 6.0
- This release fixed #46
- Docs Updated
- Fix some bugs
-
v1.1.229 Mar 2019Release notes
Open source →- Upgraded SweetAlert2 to latest version
- Added hideCloseButton() helper method
- Added reverseButtons() helper method
- Added image() method
- Added addImage() helper method
- Added position() helper method
- Docs Updated
- Fix some bugs
-
v1.1.103 Nov 2018Release notes
Open source →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 method
-
v3.021 Nov 2019Release notes
Open source →- Upgraded SweetAlert2 to latest version
- Added option to pass SweetAlert2 CDN link from included view
- Updated
animation($showClass = [], $hideClass = []) - Added
buttonsStyling()method - Added
iconHtml()method - Docs Updated
- Fix some bugs
Release notes
Open source →- Upgraded SweetAlert2 to latest version
- Added option to pass SweetAlert2 CDN link from included view
- Updated
animation($showClass = [], $hideClass = [])method - Added
buttonsStyling()method - Added
iconHtml()method - Docs Updated
- Fix some bugs
-
v2.014 Jun 2019Release notes
Open source →- Upgraded SweetAlert2 to latest version
- Added width() helper method
- Added padding() helper method
- Added background() helper method
- Added animation() helper method
- Added focusConfirm() helper method
- Added focusCancel() helper method
- Added CDN Support
- 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() -
v1.104 Apr 2018Nothing published for this version
-
v1.026 Nov 2017