定制 windsondias/livewire-toasts 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-19