quadrogod/laravel-mobizon
最新稳定版本:v2.0.1
Composer 安装命令:
composer require quadrogod/laravel-mobizon
包简介
Mobizon SMS notifications driver for Laravel
README 文档
README
Installation
Install via composer:
composer require quadrogod/laravel-mobizon
Setting up your Mobizon service
Add your Mobizon credentials to config/services.php – a common file to store
third-party service credentials.
// config/services.php ... 'mobizon' => [ 'domain' => '', 'secret' => '', 'alphaname' => null, ],
Usage
The package provides a new channel that can be used in your notification class like the following:
use Illuminate\Notifications\Notification; use Quadrogod\LaravelMobizon\MobizonChannel; use Quadrogod\LaravelMobizon\MobizonMessage; public function via($notifiable) { return [MobizonChannel::class]; } public function toMobizon($notifiable) { return MobizonMessage::create("Your SMS message"); }
Add a routeNotificationForMobizon method to your Notifiable model to return the phone number:
public function routeNotificationForMobizon() { //Phone number without symbols or spaces return $this->phone_number; }
Credits
Thanks to laraketai and Alitvinov for the original package.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-23