定制 kesty/laravel-notifier 二次开发

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

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

kesty/laravel-notifier

最新稳定版本:3.0.3

Composer 安装命令:

composer require kesty/laravel-notifier

包简介

Simple notification widget for Laravel ^8.0, ^9.0, ^10.0, ^11.0

README 文档

README

Notification system for laravel ^7.* : ^8.* : ^9.* : ^10.0 : ^11.0

Version 3.0 supports icon, image, layout and theme

Installation

First, pull in the package through Composer.

composer require kesty/laravel-notifier

And then include the service provider within app/config/app.php. (Skip this step if you are on Laravel 7.5 or above)

'providers' => [
    Kesty\LaravelNotifier\NotifierServiceProvider::class
];

At last you need to publish configs and assets.

php artisan vendor:publish --provider="Kesty\LaravelNotifier\ServiceProvider"

Setup

Insert the following after the opening of tag of your HTML For default bootstrap alert dev, use the following

@include('vendor.laravel-notifier.messages')

For Kesty Notify, use the following

@include('vendor.laravel-notifier.notify')

Controller Usage

// call the facade class
KestyNotify::info(title, body);
// or as function
kNotifier('Welcome to Laravel', 'Laravel', 'success');
kNotifier()->message('Welcome to Laravel', 'Laravel', 'info');

Test the beautiful custom version like so

kNotifier()->message('Welcome to Laravel', 'Great', null, 'fa-solid fa-check', '/assets/images/avatar.jpg', 'dark', 2);

Ensure you have an avatar image and font-awesome icon is loaded. You can use any icon of your choice, just check the icon argument to any icon you installed in your project.

You can modify /laravel-notifier/*.css to suit your needs. it's a basic iziToast styles.

统计信息

  • 总下载量: 125
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固