定制 padosoft/laravel-notification 二次开发

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

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

padosoft/laravel-notification

最新稳定版本:4.2.0

Composer 安装命令:

composer require padosoft/laravel-notification

包简介

Notification system for laravel

README 文档

README

License

System for managing Laravel Notifications via database.

Installation

This package can be used in Laravel 5.8 or higher. For previous version or Laravel please check v 1.* of this package NB: From version 4.0.0 of this package Nexmo/Vonage and Slack Notification is not automatically supported. To send Notifications via SMS or Slack see official Laravel documentation

  1. composer require padosoft/laravel-notification
  2. Publish the config file by running php artisan vendor:publish --provider="Padosoft\Laravel\Notification\NotificationServiceProvider" --tag="migrations".

##Config If you want you can publish also the config of the package Publish the config file by running php artisan vendor:publish --provider="Padosoft\Laravel\Notification\NotificationServiceProvider" --tag="config".

Usage

You can generate a Notification Class with an artisan command and register it into database.

php artisan notification-manager:create user_is_registered

This command will create an App\Notifications\user_is_registered class. Now you can customize your notification. To enable the notifications you can put to 1 the active field on the database. To set the recipients of your notification you have to populate mynotifications_users and mynotifications_roles table. Then you can send your notification like this:

NotificationManager::dispatch(new \App\Notifications\user_is_registered('prova messaggio','prova'))

Contact

Open an issue on GitHub if you have any problems or suggestions.

License

The contents of this repository is released under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-14