johanleroux/laravel-notify
Composer 安装命令:
composer require johanleroux/laravel-notify
包简介
Flexible flash notifications for Laravel
README 文档
README
Install
composer require johanleroux/laravel-notify
Usage
notify()->flash('Welcome back!', 'success'); notify()->information('Welcome back!'); notify()->success('Profile updated!'); notify()->warning('Invalid Data!'); notify()->danger('User Deleted!');
Within a view, you can now check if a flash message exists and output it.
@if (notify()->ready()) <div class="alert-box {{ notify()->type() }}"> {{ notify()->message() }} </div> @endif
Issues and contribution
Just submit an issue or pull request through GitHub. Thanks!
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-01