csgt/notification-channel-conceptomovil 问题修复 & 功能扩展

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

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

csgt/notification-channel-conceptomovil

最新稳定版本:v6.07

Composer 安装命令:

composer require csgt/notification-channel-conceptomovil

包简介

Notification channel Concepto Movil.

README 文档

README

Latest Version on Packagist Software License Total Downloads

This package makes it easy to send [Conceptomovil notifications] with Laravel 5.4.

Contents

Installation

You can install the package via composer:

composer require csgt/notification-channel-conceptomovil

You must install the service provider:

// config/app.php
'providers' => [
    ...
    NotificationChannels\Conceptomovil\ConceptomovilProvider::class,
],

Setting up your Conceptomovil account

Add your Conceptomovil Account SID, Auth Token, and From Number (optional) to your config/services.php:

// config/services.php
...
'conceptomovil' => [
    'url'     => env('CONCEPTO_MOVIL_URL'),
    'token'   => env('CONCEPTO_MOVIL_TOKEN'),
    'apiKey'  => env('CONCEPTO_MOVIL_KEY'),
    'country' => env('CONCEPTO_MOVIL_COUNTRY'),
    'dial'    => env('CONCEPTO_MOVIL_DIAL'),
    'tag'     => env('CONCEPTO_MOVIL_TAG'),
],
...

Usage

Now you can use the channel in your via() method inside the notification:

use NotificationChannels\Conceptomovil\ConceptomovilChannel;
use NotificationChannels\Conceptomovil\ConceptomovilMessage;
use Illuminate\Notifications\Notification;

class AccountApproved extends Notification
{
    public function via($notifiable)
    {
        return [ConceptomovilChannel::class];
    }

    public function toConceptomovil($notifiable)
    {
        return (new ConceptomovilMessage())
            ->content("Your {$notifiable->service} account was approved!");
    }
}

In order to let your Notification know which phone are you sending/calling to, the channel will look for the celular attribute of the Notifiable model. If you want to override this behaviour, add the routeNotificationForConceptomovil method to your Notifiable model.

public function routeNotificationForConceptomovil()
{
    return $this->mobile;
}

Available Message methods

ConceptomovilSmsMessage

  • from(''): Accepts a phone to use as the notification sender.
  • content(''): Accepts a string value for the notification body.

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email jgalindo@cs.com.gt instead of using the issue tracker.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Versions

Package Version Laravel Version
5.* 5.4+
6.* 9

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-25