承接 wavey/sweetalert 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wavey/sweetalert

最新稳定版本:v1.2.5

Composer 安装命令:

composer require wavey/sweetalert

包简介

SweetAlert2 implementation for Laravel

README 文档

README

Sweetalerts

Sweetalerts is an Laravel implementation of the much loved Sweetalerts 2 package. Show your users some beautiful alerts when actions are performed in your Laravel application with some handy helpers.

⚡️ Quickstart

Install Sweetalert through composer and run our installer.

composer require wavey/sweetalert && php artisan sweetalert:install

Include the Sweetalert2 javascript and then include our sweetalert 2 components.

<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script> @include('sweetalert::sweetalert')

???? Usage

Before using Sweetalerts, you will need to include the sweetalert facade at the top of your controllers:

use Wavey\Sweetalert\Sweetalert;

Now you should have access to the Sweetalert facade inside your controllers. Their is many varients of the alerts you can use:

Sweetalert::basic('Description', 'Title'); Sweetalert::info('Description', 'Title'); Sweetalert::success('Description', 'Title'); Sweetalert::error('Description', 'Title'); Sweetalert::warning('Description', 'Title'); Sweetalert::message('Description', 'Title'); Sweetalert::message('Description <h2>Custom HTML</h2>', 'Title')->html();

⚠️ Limitations

  • Currently this package doesn't work as expected from inside Livewire components, we are working on a fix for this and will be inside a later release. |

???? Contribute

If you want to say thank you and/or support the active development of Sweetalerts:

  1. Add a GitHub Star to the project.
  2. Tweet about the project on your twitter.
  3. Write a review or tutorial on Medium, Dev.to or personal blog.
  4. Support the project by pleding through GitHub.

????️ Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

⚠️ License

Copyright (c) 2022-present Wavey Group and Contributors. Sweetalert is free and open-source software licensed under the MIT License.

统计信息

  • 总下载量: 6.6k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 49
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 49
  • Watchers: 3
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固