laijim/simple-toast
Composer 安装命令:
composer require laijim/simple-toast
包简介
an lightweight native javascript toast library
README 文档
README
It is using native javascript, Does not depend on any other component.
Installation
The recommended approach is to install the project through Composer.
composer require laijim/simple-toast
Add service provider declare to the providers array in config/app.php
Laijim\SimpleToast\SimpleToastServiceProvider::class,
(optional) Add facade declare to the facades array in config/app.php
'SimpleToast' => Laijim\SimpleToast\Facades\SimpleToast::class,
publish resource
php artisan simple-toast:publish
#Instantiate
Controller:
\SimpleToast::toast("Hi there!"); return view('test');
View (test.blade.php):
<!doctype html> <html> <head></head> <body> </body> @include('simpleToast::html') </html>
Warning: Only modern browsers are supported.
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-25