定制 tripteki/laravelphp-notification 二次开发

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

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

tripteki/laravelphp-notification

最新稳定版本:1.1.8

Composer 安装命令:

composer require tripteki/laravelphp-notification

包简介

Trip Teknologi's Laravel.php Notifications

README 文档

README

This package provides implementation of notification in repository pattern for Lumen and Laravel besides REST API starterpack of admin management with no intervention to codebase and keep clean.

Getting Started

Installation :

composer require tripteki/laravelphp-notification

How to use it :

  • Put Tripteki\Notification\Providers\NotificationServiceProvider to service provider configuration list.

  • Put Tripteki\Notification\Providers\NotificationServiceProvider::ignoreMigrations() into register provider, then publish migrations file into your project's directory with running (optionally) :

php artisan vendor:publish --tag=tripteki-laravelphp-notification-migrations
  • Migrate.
php artisan migrate
  • Publish tests file into your project's directory with running (optionally) :
php artisan vendor:publish --tag=tripteki-laravelphp-notification-tests
  • Sample :
use Tripteki\Notification\Contracts\Repository\Admin\INotificationRepository as INotificationAdminRepository;
use Tripteki\Notification\Contracts\Repository\INotificationRepository;

$notificationAdminRepository = app(INotificationAdminRepository::class);

// $notificationAdminRepository->get("..."); //
// $notificationAdminRepository->all(); //

$repository = app(INotificationRepository::class);
// $repository->setUser(...); //
// $repository->getUser(); //

// $repository->markAsRead("..."); //
// $repository->clear("..."); //
// $repository->all(); //
  • Generate swagger files into your project's directory with putting this into your annotation configuration (optionally) :
base_path("app/Http/Controllers/Notification")
base_path("app/Http/Controllers/Admin/Notification")

Usage

php artisan adminer:install:notification

Author

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-30