windsondias/livewire-toasts
最新稳定版本:v0.1.1
Composer 安装命令:
composer require windsondias/livewire-toasts
包简介
A Livewire package to create toast notifications
README 文档
README
To use this package, you must have TailwindCss and AlpineJs installed in the project.
The icon library used in the package is remixicon.com
Installation
Use the composer command:
composer require windsondias/livewire-toasts
It is also necessary to add the relative path to the package folder in tailwind.config.js within the content key, starting from the vendor folder:
content: [
"./resources/**/*.blade.php",
"./resources/**/*.js",
"./vendor/windsondias/livewire-toasts/resources/**/*.blade.php",
],
Add the component to your layout
<body>
@persist('toast')
<x-toasts::render/>
@endpersist
</body>
To use, simply call from a livewire component:
$this->success('Message');
$this->error('Message');
$this->information('Message');
$this->warning('Message');
To change the toast layout, simply publish the package
php artisan vendor:publish --tag=livewire-toasts
统计信息
- 总下载量: 1.64k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-11-19