承接 robertseghedi/laravel-notification-system 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

robertseghedi/laravel-notification-system

Composer 安装命令:

composer require robertseghedi/laravel-notification-system

包简介

One of the most practical user-notification open-source systems. This is a fresh Laravel plugin which shows you an easier way to send encrypted notifications to your users.

README 文档

README

One of the most practical user-notification open-source systems.

This is a fresh Laravel plugin which shows you an easier way to send encrypted notifications to your users.

Instalation

First, you have to install the package using composer in your project root folder:

composer require robertseghedi/laravel-notification-system

Then, you have to add the provider to your config/app.php like that:

// your providers

RobertSeghedi\LNS\LNSProvider::class,

Run the migrate command in order to add the notifications table

php artisan migrate

Information

Command name What it does
LNS::notify($user, $string) Sends the string to the mentioned user
LNS::notifications($user, $results = 'all' or number) Fetches the mentioned user's notifications based on the criteria
LNS::delete($id) Deletes the mentioned notification
LNS::read_all($user) Changes all the user's notifications status to 1
LNS::read_notification($id) Changes the mentioned notification status to 1
LNS::change_notification_user($id, $new_user) Changes the notification's ownership to the mentioned user
LNS::delete_all($user) Deletes all the user's notifications

Usage

Now you can start using the package.

1. Include it in your controller

use RobertSeghedi\LNS\Models\LNS;

2. Start using the tools

public function monday_alert($user = null)
{
    $notification = LNS::notify($user, "Your package will arrive on Monday.");
    if($notification) return redirect()->back()->with('success', 'Notification sent.');
}
public function delete($notification)
{
    $deletion = LNS::delete($notification);
    if($deletion) return redirect()->back();
}

3. Send notifications to your users

Follow this package for future updates

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固