shanto75/laranotify 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

shanto75/laranotify

最新稳定版本:v0.1.0

Composer 安装命令:

composer require shanto75/laranotify

包简介

notification package

README 文档

README

A simple but beautiful notification package for Laravel

Installation

Install Laranotify with composer

  composer require shanto75/laranotify

Configuration

Service Provider Registration In config/app.php, add in providers array -

  'providers' => [
    // ...
    Shanto75\\Laranotify\\LaranotifyServiceProvider::class,
    // ...
],

Facade Class Alias Add in aliases array -

'aliases' => Facade::defaultAliases()->merge([
    // ...
    'Laranotify' => Shanto75\\Laranotify\\Laranotify::class,
    // ...
])->toArray(),

Include assets Add it into the top of root file app.blade.php -

@include('laranotify::laranotify')

Import first the Laranotify facade

use Shanto75\Laranotify\Facades\Laranotify;

Example #01-

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Shanto75\Laranotify\Facades\Laranotify;

class HomeController extends Controller
{
    public function index(){
        Laranotify::notify('Saved successfully!');
        return view('welcome');
    }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-16