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
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-16