百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

sweet-alert

> 后端框架
开源

一个简单的 PHP 包,可在 Laravel 框架中显示 SweetAlerts

825 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个简单的 PHP 包,可在 Laravel 框架中显示 SweetAlerts

易用的 Laravel 通知消息

return Redirect::home(); }


Here are some examples on how you can use the facade:

php SweetAlert::message('消息', '可选标题'); SweetAlert::basic('基本消息', '必填标题'); SweetAlert::info('信息消息', '可选标题'); SweetAlert::success('成功消息', '可选标题'); SweetAlert::error('错误消息', '可选标题'); SweetAlert::warning('警告消息', '可选标题');

### 使用辅助函数
`alert($message = null, $title = '')`
除了之前列出的方法之外,您还可以直接使用 helper
无需指定任何消息类型即可调用该函数。这样做与以下代码相似:
`alert()->message('消息', '可选标题')`
就像使用 Facade 时一样,我们可以使用 th

Issues· 17 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPalertlaravelsweet-alert-library

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架