Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Sweet Alert Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Changelog

All notable changes to sweet-alert will be documented in this file.

v7.3.2 - 2026-03-29

  • Laravel 12 compatibility fix for Alert facade (Closes #181)
  • Fixed: Corrected 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
  • Added [@method](https://github.com/method) PHPDoc annotations to the Alert facade for full IDE and static-analysis support

v7.3.1 - 2026-03-28

  • 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.0 - 2026-03-19

  • Added Laravel 13 Support
  • Updated bundled SweetAlert2
  • Added Laravel Boost AI guidelines and Boost Skill
  • Docs Updated

v7.2.0 - 2024-06-15

  • Added Laravel 11 Support
  • Upgraded SweetAlert2 to latest version
  • Bug Fixes
  • Docs Updated

v7.1.0 - 2023-08-08

  • Upgraded SweetAlert2 to latest version
  • Bug Fixes
  • Docs Updated

v7.0.0 - 2023-04-20

  • Added confirmDelete function
  • Added themes feature
  • Upgraded SweetAlert2 to latest version
  • Bug Fixes
  • Docs Updated

v6.0.0 - 2023-02-15

  • Added Laravel 10 Support
  • Bug Fixes
  • Docs Updated

v5.1.0 - 2022-05-28

  • Added Laravel 9 Support
  • Bug Fixes
  • Docs Updated

v5.0.0 - 2022-02-04

  • Added Laravel 9 Support
  • Bug Fixes
  • Upgraded SweetAlert2 to latest version
  • Docs Updated

v4.1.0 - 2021-11-05

  • Bug Fixes
  • Upgraded SweetAlert2 to latest version
  • Docs Updated

v4.0.0 - 2021-06-14

  • Bug Fixes
  • Upgraded SweetAlert2 to latest version
  • .gitattributes file
  • Docs Updated

v3.2.3 - 2021-05-26

  • Bug Fixes
  • Upgraded SweetAlert2 to latest version
  • Docs Updated

v3.2.2 - 2021-02-17

  • Remove Laravel 6 Support
  • Upgraded SweetAlert2 to latest version
  • Docs Updated

v3.2.1 - 2021-01-15

  • Fixed PHP 8 Issues
  • Upgraded SweetAlert2 to latest version
  • Docs Updated

v3.2.0 - 2020-12-02

  • Added PHP8 Support
  • Upgraded SweetAlert2 to latest version
  • Docs Updated

v3.1.7 - 2020-09-09

  • Added Support for Laravel 8
  • Upgraded SweetAlert2 to latest version
  • Minor Changes
  • Docs Updated

v3.1.6 - 2020-07-17

  • 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.5 - 2020-06-11

  • Upgraded SweetAlert2 to latest version
  • Minor Changes in Middleware
  • Docs Updated

v3.1.4 - 2020-03-31

  • Upgraded SweetAlert2 to latest version
  • Added ability to custom css classes
  • Docs Updated

v3.1.3 - 2020-02-22

  • Upgraded SweetAlert2 to latest version

v3.1.2 - 2020-01-24

  • Upgraded SweetAlert2 to latest version
  • Prepare Laravel 7

v3.1.1 - 2020-01-07

  • Upgraded SweetAlert2 to latest version
  • Added ability to activate or not the middleware error messages
  • Docs Updated

v3.1.0 - 2019-12-29

  • 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.1 - 2019-11-27

  • Updated animation($showClass = [], $hideClass = []) to animation($showAnimation, $hideAnimation)
  • Docs Updated
  • Fixed animations issue

v3.0 - 2019-11-21

  • 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.0.3 - 2019-10-13

  • Added symfony/thanks
  • Docs Updated
  • Fix some bugs

v2.0.2 - 2019-09-10

  • Added Missing ^ indicator prevents Laravel from updating to 6.0.1 and up
  • Docs Updated
  • Fix some bugs

v2.0.1 - 2019-09-06

  • Added support for Laravel 6.0
  • This release fixed #46
  • Docs Updated
  • Fix some bugs

v2.0 - 2019-06-14

  • 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.1.2 - 2019-03-29

  • 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.1 - 2018-03-25

Added some new methods

  • alert() method
  • alert()->success() method
  • alert()->info() method
  • alert()->wanring() method
  • alert()->question() method
  • alert()->error() method
  • alert()->html() method
  • toast() method
  • showConfirmButton() helper method
  • showCloseButton() helper method
  • showCancelButton() helper method
  • persistent() helper method
  • autoClose() helper method
  • toToast() helper method
  • footer() helper method

v1.0 - 2018-03-25

  • Deprecated

v1.0 - 2017-09-02

  • initial release
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata